-
Bug
-
Resolution: Fixed
-
P4
-
7u4
-
b12
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8006845 | 8 | Sergey Malenkov | P4 | Resolved | Fixed | b75 |
JDK-8018760 | 7u45 | Sergey Malenkov | P4 | Closed | Fixed | b01 |
When JTree.setLargeModel(true) is being used then horizontal scroll bar appears as needed when scrolling the tree vertically. If currently visible tree rows are short enough then horizontal scrollbar disappears. If at least one visible row is too wide horizontal scroll bar pops in.
However this mechanism is broken if the last tree row is too long to fit visible area and all other rows are short enough to show without scrollbar. See the third JTree screenshot in the attachment - only the very last tree row is too long. Now if the tree is resized vertical scrollbar will show - as in picture A. Pressing End key to move selection to the last tree row will scroll the tree down. But since the last row is too long the horizontal scrollbar will show. However it will take some of the vertical space - see picture B. At this point clicking 'down' button on the vertical scrollbar does nothing. Also the horizontal scrollbar stays at same position when being manipulated by mouse.
See also this NetBeans issue: http://netbeans.org/bugzilla/show_bug.cgi?id=219709
However this mechanism is broken if the last tree row is too long to fit visible area and all other rows are short enough to show without scrollbar. See the third JTree screenshot in the attachment - only the very last tree row is too long. Now if the tree is resized vertical scrollbar will show - as in picture A. Pressing End key to move selection to the last tree row will scroll the tree down. But since the last row is too long the horizontal scrollbar will show. However it will take some of the vertical space - see picture B. At this point clicking 'down' button on the vertical scrollbar does nothing. Also the horizontal scrollbar stays at same position when being manipulated by mouse.
See also this NetBeans issue: http://netbeans.org/bugzilla/show_bug.cgi?id=219709
- backported by
-
JDK-8006845 JTree scrolling problem when using large model in WindowsLookAndFeel.
-
- Resolved
-
-
JDK-8018760 JTree scrolling problem when using large model in WindowsLookAndFeel.
-
- Closed
-
- relates to
-
JDK-8011259 javax/swing/JTree/8003400/Test8003400.java failed on solaris with "java.lang.Error: TEST FAILED: -2"
-
- Closed
-