wood burning stoves 2.0*
The moose likes Applets and the fly likes Opening webpage from Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Opening webpage from Applet" Watch "Opening webpage from Applet" New topic
Author

Opening webpage from Applet

Ananda Kashyap
Greenhorn

Joined: Jan 03, 2001
Posts: 23
Could you please let me know How I can open a webpage suppose: http://www.javaranch.com from an applet, I have been developing? I want to do it with the Click of a button. Please give an example.
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
I am going to move this to the Applet forum as you will probably get a better response.
Bill
Stephanie Grasson
Ranch Hand

Joined: Jun 14, 2000
Posts: 347
Ananda,
Here is an example:

Hope this helps.
Stephanie
[This message has been edited by Stephanie Grasson (edited February 28, 2001).]
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
and the HTML page which accesses this applet is here....
enjoy.....
ps: Load this page in the browser and then click the button.
It doesn't work from an appletviewer, for obvious reasons
namely - no Context. Am I right?
regds.
- satya



[This message has been edited by Madhav Lakkapragada (edited February 28, 2001).]


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

While we don't need such a complex html script, I just
used (plagiarisim, if you want to call it that) the
Sun's HelloWorld example and replaced the .class file.
Laziness pays now!
regds.
- satya
Ananda Kashyap
Greenhorn

Joined: Jan 03, 2001
Posts: 23
Thanks all,
That's great. I almost became frustated little frustated. I couldn't find it anywhere, may be I don't know where to look.
Thanks again.
- Ananda
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Opening webpage from Applet