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

Cannot add nodes to a Swing JTree node dynamically.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6
    • client-libs



      Name: mf23781 Date: 06/19/98


      We cannot add nodes to a Swing JTree node dynamically at
      runtime. Jtree does not provide a method that is called before a node is expanded to display its children. There is a need to be able to manage/alter a nodes children, and select the children for display at the time the user clicks the node handle(The plus sign in the basic U/I).

      Using the TreeCellExpanded event is insufficient as this event is sent after the cell has been expanded and all children painted.

      Perhaps a TreeCellAboutExpand event or method needs added. This needs to be added to the Swing JTree design.


      ======================================================================

            svioletsunw Scott Violet (Inactive)
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: