wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes A user-friendly XML editor in Swing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "A user-friendly XML editor in Swing?" Watch "A user-friendly XML editor in Swing?" New topic
Author

A user-friendly XML editor in Swing?

Jane Jukowsky
Ranch Hand

Joined: Mar 28, 2009
Posts: 145
I am writing an application for somewhat computer-illiterate end-users. The application has properties, stored in XML (though they will be in java.util.Properties if they have to). Is there a component that allows users to edit an XML file in a very user-friendly way, without even knowing it's an XML?

Thanks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Maybe a JavaBean approach with POJOs and a property box with name value pairs?
A JList to display all the POJOs and a JTable to display the properties of the selected object?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Jane Jukowsky
Ranch Hand

Joined: Mar 28, 2009
Posts: 145
That would do! What's a good JavaBean Editor?

It can get complex, it might involve comboboxes, checkboxes, color editors and such.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Jane Dodo wrote:Is there a component that allows users to edit an XML file in a very user-friendly way, without even knowing it's an XML?


Abstracting this a bit: if you don't know it's XML, what you're left with is that it is tree-structured data. So if you were reduced to writing your own component, this would be a hint about where to start.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Jane Dodo wrote: What's a good JavaBean Editor?

There was something called a Bean Development Kit long time back. I am not sure what the latest version is called or if it will suit your requirement as is. You might want to Google for that.
However, writing your own, would not be really difficult. From your other posts, I get a feeling that you do have a good grasp of Swing concepts and I think you can do it. If you get stuck anywhere, you can always post the problem here

Paul Clapham wrote:..., what you're left with is that it is tree-structured data.

I am not sure I understand you Paul. A tree indicates a nested hierarchy, typically with parent child relationship. Of course the POJO and attributes would indicate parent child, but I think thats not really it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A user-friendly XML editor in Swing?
 
Similar Threads
Ideas for an XML Template builder UI-
Looking for an XML Editor with API for a Wizard project
GUI support for ESB
Choosing ESB
Jboss+loadrunner