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

JTree's selection moves when collapsing nodes using large model

XMLWordPrintable

    • swing1.1
    • x86
    • windows_95

      I've found a bug in the JTree "large model"- i.e., when I've called
      setLargeModel(true) it incurs a performance hit.

      The bug causes the selection to "jump" from selected nodes to unrelated
      nodes when certain nodes are collapsed. A small program that manifests the
      bug is attached, and the first few lines have instructions to see the bug.

      Platform: JDK 1.1.5, Windows NT 4.0, found on Swing 0.6.1, Swing 0.7, and Swing-Pre-1.0(2/3)

      The attached .java file is formatted for a wide terminal.
      (See attached file: JTreeBug.java)

      ------------------------------------------------
      If you select an item under a node and close another node, the node moves but the selection stays the same place on the screen. This causes unrelated nodes to become selected.

      tom.santos@eng 1998-03-16

            svioletsunw Scott Violet (Inactive)
            bkimsunw Bae-chul Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: