Register / Login
Win a copy of
The Way of the Web Tester: A Beginner's Guide to Automating Tests
this week in the
Swing / AWT / SWT
Conditionalize popup menu for each node in JTree
posted 10 years ago
Is it possible to show a different list of items based on the node inside a
. I know how to show the menu for the whole tree, but can I have multiple menus in the tree...
Parent > Child 1 > Child 2
Can Parent have a menu that says, "New, Rename" and Child 1 have a menu that says "New, Rename, Delete" and Child 2 have a menu that says "New, Rename, Delete" where delete is grayed out?
How would this be done?
JTree - programmatically control adding nodes
Vector to Jtree
Subtree in JTree
XML to DOM to JTree