Register / Login
Swing / AWT / SWT
Conditionalize popup menu for each node in JTree
posted 11 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?
Boost this thread!
JTree - programmatically control adding nodes
Vector to Jtree
Subtree in JTree
XML to DOM to JTree