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

JComponent.scrollRectToVisible failes if component not visible and not valid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.2.2
    • client-libs
    • merlin
    • generic
    • generic

      JTree.scrollPathToVisible fails to make the element viewable in view pane if the element scrolling to is not currently visible. If an expandPath and setSelectionPath are called before the scrollToPath the element is not made viewable in view pane.

      To illustrate.

      cd /usr/local/java/jh1.1/

      setenv CLASSPATH javahelp/lib/jh.jar:javahelp/lib/jhtools.jar;demos/hsjar/holidays.jar

      java sunw.demo.jhdemo.JHLauncher -helpset HolidayHistory.hs

      In the TOC open all off the American Holidays so the list is full. Make sure that Easter is hidden.

      Got to Index navigator and select Herod

      Return to the TOC navigator. Herod under is Easter is open and selected, but not displayed.

            svioletsunw Scott Violet (Inactive)
            rbrinkle Roger Brinkley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: