• Post Reply Bookmark Topic Watch Topic
  • New Topic

Embed Word/PDf documents in Swing

 
Rohit Kedia
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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: 42970
73
  • Mark post as helpful
  • send pies
  • 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
  • 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: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's a Java API, the home page of which is quickly found by a search.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!