-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
unknown
-
generic
If you expand a JTree node in a panel, edit a specific child node
and then call scrollRowToVisible() for the selected path, in
some circumstances the tree does not actually scroll to the node
being edited.
To reproduce using the attached test, do the following:
1. Expand the "Rock" node
2. Expand the "Steve Miller Band" node
3. Select the "Joker" node, but DONT expand it!
4. Then press the "Expand and Edit" button
The program then exapnds and starts editing the "Something to believe in" node
and tries to scroll to it. But you will see that the node
is still off screen.
This happens predictably when both horizontal
and vertical scroll bars are needed. It scrolls correctly
if the horizontal scroll bars are not needed, but the test
case should demonstrate the problem. Problem seen in 1.2 RC2.
and then call scrollRowToVisible() for the selected path, in
some circumstances the tree does not actually scroll to the node
being edited.
To reproduce using the attached test, do the following:
1. Expand the "Rock" node
2. Expand the "Steve Miller Band" node
3. Select the "Joker" node, but DONT expand it!
4. Then press the "Expand and Edit" button
The program then exapnds and starts editing the "Something to believe in" node
and tries to scroll to it. But you will see that the node
is still off screen.
This happens predictably when both horizontal
and vertical scroll bars are needed. It scrolls correctly
if the horizontal scroll bars are not needed, but the test
case should demonstrate the problem. Problem seen in 1.2 RC2.
- duplicates
-
JDK-4180658 JTree.scrollPathToVisible not scrolling
-
- Resolved
-