permaculture playing cards*
The moose likes Java in General and the fly likes Calling a pdf file from java swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Calling a pdf file from java swing" Watch "Calling a pdf file from java swing" New topic
Author

Calling a pdf file from java swing

Keshini Weerasuriya
Greenhorn

Joined: Jan 08, 2006
Posts: 24
Hey.. IS there any way to call a pdf file from java swing application. I want to give a user manual for my application in pdf format and wants this document to open when say the user clicks some button in java swing application..

Is this possible? Thanks in advance..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41083
    
  43
You can bundle the PDF file with your Swing app, and open it using Runtime.exec.


Ping & DNS - my free Android networking tools app
Keshini Weerasuriya
Greenhorn

Joined: Jan 08, 2006
Posts: 24
Thanks for the reply..Can u explain a bit further on how to do it??
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41083
    
  43
How to do what? Are you familiar with jar files and Runtime.exec?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Calling a pdf file from java swing
 
Similar Threads
attaching a file .doc or .pdf into a java application
Launching other applications from Java GUI
How to open an PDF file from Java Application
PDF to database
Containers