Top "Jtree" questions

Java Swing component that displays a set of hierarchical data as an outline.

How can I refresh a JTree after adding some nodes to the underlying model?

First of all, let me say that I dont use the DefaultTreeModel. I implement my own TreeModel, so i cant …

java swing jtree
Adding and removing nodes from a JTree

I have a very basic JTree. As I am on a rush, I'd prefer not to use TreeModel if it …

java swing jtree treemodel tree-nodes
Java detect CTRL+X key combination on a jtree

I need an example how to add a keyboard handler that detect when Ctrl+C , Ctrl+X , Ctrl+C pressed …

java keyboard-shortcuts jtree
Right-click context menu for Java JTree?

I'm trying to implement pop-up menus in Java JTree. I've sub-classed DefaultTreeCellRenderer (to change node appearance) and DefaultTreeCellEditor (to create …

java contextmenu jtree
How to get selected node from JTree after selecting it?

Possible Duplicate: JTree: how to get the text of selected item? 1In C# there's TreeView_afterSelect event, and i ask …

java swing jtree
How to search a particular node in jtree and make that node expanded.?

I am having a jtree with 100 nodes. now i want to search particular node from that tree and make that …

java swing jtree
How do I auto-expand a JTree when setting a new TreeModel?

I have a custom JTree and a custom JModel; I would for the JTree to "auto-expand" when I give it …

java swing tree jtree
Java: How to programmatically select and expand multiple nodes in a JTree?

I have a JTree and an awt.Canvas. When i select multiple objects from within the Canvas into the objList, …

java swing select jtree treenode
Java JTree expand only level one nodes

With a JTree, assuming the root node is level 0 and there may be up to 5 levels below the root, how …

java swing jtree
How to get all childs of root node in jtree?

I want to get all child nodes of root node. ex: Root child1 child1.child1 child2 child2.child1 Now I …

java swing jtree