Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    8,361

    Re: JTree - Remove All Nodes

    Ok, well I have a method that builds the tree. I would think that all of this is essential:

    public void buildTree(Location o,Location d,int deptTime)
    {
    DefaultTreeModel model =...
  2. Replies
    4
    Views
    8,361

    Re: JTree - Remove All Nodes

    Ok, so I figured that out by looping through until the root is a leaf and removing nodes using the DefaultTreeModel.removeNodeFromParent() method.

    Now I have a new problem.

    The reason I wanted...
  3. Replies
    4
    Views
    8,361

    JTree - Remove All Nodes

    I just have a quick question.

    I have a JTree with X number of Nodes and X number of levels and I wanted to know how I would go about removing all of the nodes from the JTree, with the exception...
Results 1 to 3 of 3