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
posted
0
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
posted
0
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
posted
0
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).]
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
posted
0
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