can JTree's have multiple roots and models ?



I want to change my tree around and I have the following questions
about a JTree?

- Can a JTree can have several root nodes?
- Can a JTree have several TreeModel's for each root node?

Thanks,

.



Relevant Pages

  • Re: can JTrees have multiple roots and models ?
    ... >I want to change my tree around and I have the following questions ... > - Can a JTree can have several root nodes? ... > - Can a JTree have several TreeModel's for each root node? ...
    (comp.lang.java.gui)
  • Re: automatic refreshing of JTree not working
    ... I'm having a hell of a time trying to get a JTree to automatically refresh to show that a node has been moved from one parent node to another. ... I tried the reloadmethod of the tree model and of course when I do that the entire tree collapses and that isn't what I want method useful). ... And *that* issue is due to how JNDI sends search requests to a server. ... I thought if I go back to simplifying my code to make the JTree update itself then I wouldn't even have to go back to my data source, at least for refreshing the node that had one of its children removed. ...
    (comp.lang.java.gui)
  • DOM extension of JTree
    ... I've created the following extension of a JTree. ... Instead the tree just contains the default "colors, sports, foods" ... The class takes as an input a DOM and should process this DOM into the ... private static DefaultMutableTreeNode makeRootNode ...
    (comp.lang.java.programmer)
  • JSplitPane, ScrollPanel, JTree not displaying correctly
    ... JScrollPane is the only component on the left side of the JSplitPane. ... JTree, and the JSplitPane. ... I never get a vertical scroll even though ... it is obvious the tree is much longer then the viewable window. ...
    (comp.lang.java.gui)
  • Re: [SWING] Problem with JTree
    ... I use a subclass of JTree that overwrites getCellRendererto get full control over the cell renders. ... If i try to display the structure and content of the object using my tree the tree is not displayed correctly. ... My TreeCellRenderer implementations are subclasses of DefaultTreeCellRenderer and overwrite getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) to determine the current value and call the super method. ... Additionally there's a TreeSelectionListener registered at the JTree that triggers the display of extra information on a separate JPanel. ...
    (comp.lang.java.programmer)