I have xml file that I want to present in my gui.
I also want to give the user an option to add elements and attributes and also to be able to delete them.
How do you think I should imlement this requierment?
shlomy bentulilah wrote:Exactly BUT do it with only 2 buttons : add element/attribute and remove element/attribute...
I won't be of much help with this matter then. I suspect you are going to need to look into the JEditorPane and Document interfaces so that you can figure out where your cursor is, where you need to insert new elements, etc. Something I have never done.
Joined: Oct 25, 2007
What do you think about this one :
1.Reformat my xml file to HTML text when each element and atrribute will be html hyperlink.
2.With the JEditorPane I will load these elements and attributes and use the hyperlinkUpdate to do my delete/add actions.
Do you know if I can do some html manipulations such as changing to color of the hyperlink ?