This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes Calling up another applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Calling up another applet" Watch "Calling up another applet" New topic
Author

Calling up another applet

Alam Ikenna
Greenhorn

Joined: Mar 26, 2008
Posts: 16
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
Marshal

Joined: Mar 22, 2005
Posts: 41128
    
  45
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.


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: Calling up another applet
 
Similar Threads
Applet Servlet Communication
To call a servlet from another servlet
Applets
applet objects
Applet invoke another applet