This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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 ?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: SWING - gui and xml file structure manipulation