Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling up another applet

 
Alam Ikenna
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please, can someone knidly show me the steps involved in calling up an applet from another applet. For instance, clicking a button in an applet application to call up another applet window.

Thanks

Alam Winner Ikenna
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by "calling up an applet" - do you want a new browser window to open showing the web page with the second applet, or should the current page by replaced by it? Either way, you need to call "getAppletContext" in the Applet class, which will return an AppletContext object. By calling the showDocument method on that object you can achieve both cases.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic