aspose file tools*
The moose likes Beginning Java and the fly likes open a webpage from a java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "open a webpage from a java application" Watch "open a webpage from a java application" New topic
Author

open a webpage from a java application

glen li
Greenhorn

Joined: Aug 24, 2004
Posts: 19
Hi there,

How can I open a webpage from an application by clicking a button using whatever browser user have ? Thanks!

glen
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12
What if you have the button do a doGet on the web page when you click the button


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
glen li
Greenhorn

Joined: Aug 24, 2004
Posts: 19
Thanks Marilyn, I am still confused about the 'doGet' you mentioned. I know from an applet, I can use 'showDocument()' on an URL object to show a webpage, is there any similar way for an application or is this forbidden due to security reason? Could you give a little more detail? Thanks!

-glen
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: open a webpage from a java application