• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Third party tool in Swings

 
Sriram Akula
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11196
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sriram Akula
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks maneesh....I think its the best way to learn..i would try it out
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic