Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to open a pdf file in JFrame

843806Apr 24 2008 — edited Apr 26 2008
hi to all,
i need to know how to open a pdf file in JFrame. Help is needed with this would grateful, and i used the code state below..
InputStream in=this.getClass().getResourceAsStream("/images/help1.pdf");
Process p = Runtime.getRuntime().exec(in);
Thanks in Advance...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2008
Added on Apr 24 2008
12 comments
1,879 views