Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMenuItem opens a html file in browser

 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i never done this b4, and now going to do it.

then problem is i hardly to find an example.

i want when i click on my JMenuItem, like "?Help" , it will open a browser and display the ahtml.html file which is not a website link, just the html file i've done to explain to user about how to use the application and bla bla bla.

so can someone show me?
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This works for me



Evidently you would need to know what browser you want to use. For Internet Explorer you would have to change firefox for iexplorer.
[ October 22, 2006: Message edited by: Edwin Dalorzo ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at http://www.javaworld.com/javaworld/javatips/jw-javatip66.html
 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks all senior.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic