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.