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

REGRESSION:JTree with setLargeModel(true) not display correctly when expand/coll

XMLWordPrintable

    • mantis
    • x86
    • linux_redhat_7.1, windows_nt


      ###@###.### 2002-10-15

      bug#4745001 is not fixed completely; it does fix the original problem
      but there are other problems with more complex trees.

      J2SE Version (please include all output from java -version flag):
        java version "1.4.1-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
        Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed mode)

      Operating System Configuration Information (be specific):
       NT 4.0 SP6a

      Steps to Reproduce (be specific):

         >javac PatchedFixedHeightLayoutCache.java
         >javac PatchedBasicTreeUI.java
         >javac TT2.java

         >java TT2
       
          click to expand node "c"
          click to expand node "b"
          click to expand node "A" under node "b"

          Note that node "A" jumps down one row which is a problem.

          click to collapse node "A"
          click to expand node "A"

          Node "A" jumps down another row.

         If you continue, you eventually get an exception. The fix to remove
         then add the node from the cache doesn't keep the internal indexes
         consistent.

            apikalev Andrey Pikalev
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: