• 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

Rendering HTML

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic