diff options
Diffstat (limited to 'libjava/javax/swing/plaf/basic/BasicScrollBarUI.java')
| -rw-r--r-- | libjava/javax/swing/plaf/basic/BasicScrollBarUI.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libjava/javax/swing/plaf/basic/BasicScrollBarUI.java b/libjava/javax/swing/plaf/basic/BasicScrollBarUI.java index 7e06067fa49..a7de70101dc 100644 --- a/libjava/javax/swing/plaf/basic/BasicScrollBarUI.java +++ b/libjava/javax/swing/plaf/basic/BasicScrollBarUI.java @@ -645,8 +645,9 @@ public class BasicScrollBarUI extends ScrollBarUI implements LayoutManager, /** * This method calculates the preferred size since calling * getPreferredSize() returns a cached value. + * This is package-private to avoid an accessor method. */ - private void calculatePreferredSize() + void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; @@ -1248,12 +1249,13 @@ public class BasicScrollBarUI extends ScrollBarUI implements LayoutManager, * This method returns the value in the scrollbar's range given the y * coordinate. If the value is out of range, it will return the closest * legal value. + * This is package-private to avoid an accessor method. * * @param yPos The y coordinate to calculate a value for. * * @return The value for the y coordinate. */ - private int valueForYPosition(int yPos) + int valueForYPosition(int yPos) { int min = scrollbar.getMinimum(); int max = scrollbar.getMaximum(); @@ -1280,12 +1282,13 @@ public class BasicScrollBarUI extends ScrollBarUI implements LayoutManager, * This method returns the value in the scrollbar's range given the x * coordinate. If the value is out of range, it will return the closest * legal value. + * This is package-private to avoid an accessor method. * * @param xPos The x coordinate to calculate a value for. * * @return The value for the x coordinate. */ - private int valueForXPosition(int xPos) + int valueForXPosition(int xPos) { int min = scrollbar.getMinimum(); int max = scrollbar.getMaximum(); |

