Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rendering HTML

 
NILESH PATEL
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am working on swing compionents. Now I have a button on my prom called "Open Docs", which I would like to point to locally stored HTML document. Is there any way I can get this doen. Obstacles may be, how to determine which browser is installed on the machine, as application is multi platform and so on. Also what if someone has not got browser and still would open the document or post a message that "broweser is not supproted" or something.
Thanks in advance
Love Nilesh Patel
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmmm... two ideas:
  • Use a JEditorPane - this supports (basic) HTML anyway...
  • The first time a user trys to launch the help, have them choose the program they want to use. Save this somewhere and use it for any later accesses.


  • -Nate
    [ January 14, 2002: Message edited by: Nathan Pruett ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic