This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Launching a browser through a Swing Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Launching a browser through a Swing Application" Watch "Launching a browser through a Swing Application" New topic
Author

Launching a browser through a Swing Application

Fardeen Siddiqui
Greenhorn

Joined: Dec 08, 2000
Posts: 21
Hi all,
I am making an application using swing. can someone please tell me how can i opne the default browser and give it a URl through a click event from my application
thanx
fardeen
[This message has been edited by Fardeen Siddiqui (edited December 22, 2000).]
Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
Try the following code. I modified some tutorial code which will load a URL into a browser from a Java app.
Note: If somebody knows the original authors name I'd like to give credit in my code to him. I modified his code and am releasing my code under the GPL. There is more notes in the comments.
Have fun!
Fardeen Siddiqui
Greenhorn

Joined: Dec 08, 2000
Posts: 21
Hi Frank,
thanx a lot for the help..
it was a great help
fardeen
 
Consider Paul's rocket mass heater.
 
subject: Launching a browser through a Swing Application
 
Similar Threads
Swing to Web Conversion
Behind Firewall
Open Swing Application in a browser
Opening a Browser Window
Behind Firewall