Lines 112-119
Link Here
|
112 |
if (thumb != null) |
112 |
if (thumb != null) |
113 |
thumb.setVisible(trackBounds.height > thumbHeight); |
113 |
thumb.setVisible(trackBounds.height > thumbHeight); |
114 |
|
114 |
|
115 |
int thumbY = trackBounds.y + (trackBounds.height - thumbHeight) |
115 |
int thumbY = trackBounds.y + Math.round((trackBounds.height - thumbHeight) |
116 |
* (scrollBar.getValue() - min) / valueRange; |
116 |
* ((scrollBar.getValue() - min) / (float)valueRange)); |
117 |
|
117 |
|
118 |
Rectangle thumbBounds = new Rectangle( |
118 |
Rectangle thumbBounds = new Rectangle( |
119 |
trackBounds.x, |
119 |
trackBounds.x, |