• 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Using Third party tool in Swings

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks maneesh....I think its the best way to learn..i would try it out
 
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic