|
Quick Lists
|
|
Bug ID:
|
4365758
|
|
Votes
|
0
|
|
Synopsis
|
JTree returns strange values for getScrollableUnitIncrement()
|
|
Category
|
java:classes_swing
|
|
Reported Against
|
merlin
|
|
Release Fixed
|
1.4(merlin-beta)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
4202656
,
4587775
|
|
Submit Date
|
25-AUG-2000
|
|
Description
|
The JTree in SwingSet2 returns negative values if the scrollthumb is dragged all the way to the top of the scroll track, and then the up scroll arrow is clicked. This causes the JTree to scroll _DOWN_ ever so slightly, even though the up arrow was clicked. (Incidentally, this effect is magnified somewhat with mouse wheel scrolling, but you'll have to wait for the next integration to see that =). This only happens one time - once the scroll thumb is moved down slightly, clicking the up scroll arrow again yields a unit increment of 0.
xxxxx@xxxxx 2000-08-25
The SwingSet2 ListDemo also behaves strangely. Scrolling the left-hand list all the way to the bottom, and then clicking the up scroll arrow (or wheeling up) only scrolls the list by 1 pixel. It should be more like 6.
xxxxx@xxxxx 2000-09-07
|
|
Work Around
|
N/A
|
|
Evaluation
|
I believe both of these are happening because JTree/JList is not checking for negatives when the component has insets.
xxxxx@xxxxx 2000-11-27
JTree was not checking if the first row was inset, and thus could return a negative value from getScrollableUnitIncrement. I believe the list problems are happening because of 4378013.
xxxxx@xxxxx 2000-11-28
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |