• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Embed Word/PDf documents in Swing

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I need some help in this Knowledge.
I have a User Guide which is in both PDF format and word format, so I want to display it through a Swing Application.

Here I have two Approaches:
1. I can either invoke the files which are located inside my Application through Runtime class (I need to know how can i do that)

2. I can show the PDf or word files in a JPanel or JFrame or anything else.

Note:
Since its a kind of User guide so no editing will be done..

or is there any other way I can design a User Guide with Screenshots and show in the Application using some JComponent

Secondly I also need to show some FAQ's also in my Application can anyone suggest me how can I do that using JComponent.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The usual approach would be to use JavaHelp, which provides the Swing components, indexing, TOC etc. I think it works with raw text, though, not PDF or Word.

There used to be a decent Swing PDF viewer component (called PDF Renderer), but it seems to have fallen by the wayside. The source code is still in the repository, though, so you can presumably build it yourself.
 
Rohit Kedia
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:The usual approach would be to use JavaHelp, which provides the Swing components, indexing, TOC etc. I think it works with raw text, though, not PDF or Word.

There used to be a decent Swing PDF viewer component (called PDF Renderer), but it seems to have fallen by the wayside. The source code is still in the repository, though, so you can presumably build it yourself.



Hi ,
Thanks for this , any Idea on Word Documents.
 
Rohit Kedia
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Is there any way I can create a User Guide kind of throug Swing which consist of some static contents and Images .

JEditorPane. can it be used or any other ... If through word or PDF if not possible.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Is there any way I can create a User Guide kind of throug Swing which consist of some static contents and Images.


Did you check out JavaHelp? That's what it's there for.
 
Rohit Kedia
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:

Is there any way I can create a User Guide kind of throug Swing which consist of some static contents and Images.


Did you check out JavaHelp? That's what it's there for.



Is this any external site ???
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, it's a Java API, the home page of which is quickly found by a search.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic