This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Swing + XML Application [Suggest Best Framework] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing + XML Application [Suggest Best Framework]" Watch "Swing + XML Application [Suggest Best Framework]" New topic
Author

Swing + XML Application [Suggest Best Framework]

Vinod Vin
Greenhorn

Joined: Jul 19, 2012
Posts: 4
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
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1075
    
  10

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.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Vinod Vin
Greenhorn

Joined: Jul 19, 2012
Posts: 4
@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
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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

Joined: Oct 16, 2003
Posts: 1075
    
  10

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing + XML Application [Suggest Best Framework]
 
Similar Threads
JEasy 1.9 released
Framework with good GUI
Is Netbeans more complicant than eclipse?
Swing Framework
Seeking the "Next Level" of Java Skills