my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes Display a XML file on JTree Problem (validation of change of node)  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Display a XML file on JTree Problem (validation of change of node)  " Watch "Display a XML file on JTree Problem (validation of change of node)  " New topic
Author

Display a XML file on JTree Problem (validation of change of node)

Stephen Lee
Ranch Hand

Joined: Dec 11, 2001
Posts: 74
I am now creating a JTree which displays XML file while I am now using xerces-J 1.4.4. in my JTree, the user can add the node or remove the node of the JTree.
I want that right click on a node of JTree will display a popup menu. This menu has the name of the node which allows to be added. However, how can I check whether the change of the JTree is valid? for example, in the add case of element to JTree, I want to check whether the new node allows to be added in that place.
Any idea?
thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display a XML file on JTree Problem (validation of change of node)