Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4193725

scrollRowToVisible doesnt work when horizontal and vertical scrolling needed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs

      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.

            svioletsunw Scott Violet (Inactive)
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: