• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A user-friendly XML editor in Swing?

 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic