Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing + XML Application [Suggest Best Framework]

 
Vinod Vin
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am going to start working on an application which should be built using Java Swing and XML as datasource.
This application will involve heavy xml's and Java Swing UI.
Also Performance is very essential factor as all the operations will be performed on the XML documents.

Please sugggest best framework to use.

Any information and links will be very helpful.


Thanks !
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure I understand the problem. There aren't many toolkits out there that are built on top of Swing. In which way is Swing so deficient that you think you need to use a framework on top of it?

XML processing capabilities (DOM, SAX, XPath, XSLT) are built into the JRE, at least for XML parsing you should be all set. For generating XML you may wish to use a framework other than DOM, like JDOM, XOM, dom4j, etc.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you should also consider JAXB to handle XML (both reading and writing). You can then use these generated classes in the model directly. You can also consider beans binding to bind these to swing components.
 
Vinod Vin
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ranganathan -
Thanks we are planning to use JAXB as one of my coleague also told me it will be good to use. SO mostly we will use JAXB for XML read write.
It will be highly appreciated if you can provide some links to the tutorials.
Also are there any point where I can look out for perfomrance improvement as we have got time of 3 sec to fetch the xml data from two sources and then combine them and show it in UI.
And out of this 2 files one file will be having huge amount of data.


@Ulf -
Thanks for quick reply,
I am expecting some thing like Struts which provide basic skeleton of separation of layers presentation , business and database.
so Like this is it possible to implement in Swing application.
Or
Is there any framework which provides basic skeleton.
Are there any Spirng features, which can be used in development of such application?

Thanks for your qick attention !

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be unusual to have an MVC framework in a desktop app, as Swing already implements these abstractions to some degree.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinod Vin wrote:@Ranganathan -
Thanks we are planning to use JAXB as one of my coleague also told me it will be good to use. SO mostly we will use JAXB for XML read write.
It will be highly appreciated if you can provide some links to the tutorials.
Also are there any point where I can look out for perfomrance improvement as we have got time of 3 sec to fetch the xml data from two sources and then combine them and show it in UI.
And out of this 2 files one file will be having huge amount of data.


Here's the link for JAXB.

And for swing you can start with the tutorial

I am not very sure about how these various APIs deal with large XML files - I mean from a memory/performance point of view. I think DOM is more memory intensive.

For XML specific information, you might want to check out our XML forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic