• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A user-friendly XML editor in Swing?

 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would do! What's a good JavaBean Editor?

It can get complex, it might involve comboboxes, checkboxes, color editors and such.
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic