Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening webpage from Applet

 
Ananda Kashyap
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going to move this to the Applet forum as you will probably get a better response.
Bill
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic