• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic