This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ?