aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Using Third party tool in Swings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using Third party tool in Swings" Watch "Using Third party tool in Swings" New topic
Author

Using Third party tool in Swings

Sriram Akula
Greenhorn

Joined: Mar 21, 2009
Posts: 7
Can anyone give me an idea how to use third party tools in swings.

Also i need a sample code for reading xml file through java(in swings would be much helpful)
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

It is Swing and not swings

Third party tools are usually in the form of jars.
Select the library you want to use. (There might be multiple which do the same stuff. You can generate reports with JFreeChart, BIRT, Jasper reports etc)
Check out the API.
Check out the documentation.
Get the downloaded jar(s) onto your classpath.
Start coding.

We do not hand out code just like that here at the Ranch. We would rather you try out on your own and learn on the way. If you get stuck anywhere, we will be more than happy to help, but we need to see your code first.
Swing is a set of visual components. So using swing to read any file is not possible. You can however use any appropriate component to display the contents of the file.
To read the XML, you will need to open a stream to the file, read the contents and then parse/process them as required.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Sriram Akula
Greenhorn

Joined: Mar 21, 2009
Posts: 7
Thanks maneesh....I think its the best way to learn..i would try it out
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Third party tool in Swings