• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

(JAVA SWING)JTREE + JDOM +XML

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I need to create an GUI XML editor implemented in java swings .Basically - It should allow me to add child nodes in the displayed XML (jTree) or delete the the child nodes .It should also allow me to edit the content of a particular atrribute of the node .

my xml format is :


FOR EXAMPLE HERE I WANT TO CHANGE the value of V in subchild .






I wish to use JDOM and JAXEN - XPath for xml parsing .

After the editing the XML file , it should be saved as XML file .

Acutally i am new to java SWING programming .So i am confused abt few things.

1.After searching soem topics in forums and internet , i found that it is tough to edit the contents of nodes using jtree.

Am very new to swing ,
so I dont know which one is good or which one is bad to be used for implementation .I really appreciate if someone gives soem ideas for my implementation .

I would also welcome sample codes for the same

With thanks
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Go thru thr Q&A in this link. http://www.cs.ualberta.ca/TechReports/2005/TR05-07/TR05-07.html
I found it useful.
 
sekhar subbu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi thanks a lot ...i found it usefull...but still i have to get practised with java swing !
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
avid coder / sekhar,

We don't have too many rules around here but we do have a Naming Policy. Please adjust your display name accordingly. You can do so by clicking here.

Thanks a bunch.
[ November 21, 2006: Message edited by: Gregg Bolinger ]
 
sekhar subbu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@dhanya

i saw your post related to xml and java swing..
https://coderanch.com/t/128829/XML/XML-JTree



so did you finally acheieve the solution ...

i would be very happy..if you could share the code with me ...
even am trying to play with examples...

thnks

@greg...

am following your rules
 
Dhanya Palanisamy
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi sekhar.

No i haven't found the solution as i am new to Swing. But i found some similar problem to yours and solution in google groups. Try searching there once.


Dhanya.
 
Dhanya Palanisamy
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sekhar,

http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#dynamic

check this, might be useful for you.
 
sekhar subbu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey dhanya

thanks a lot ..
really a useful link...
i think i have improved in java swings .
But still i dont know how to update the edited node using tree selection listener
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic