try AppletContext context = getAppletContext(); Applet a = (Applet) a.getApplet("html name"); a.doSomething();
Applets can only get a reference to each ohter when in the same html file (ie not different framesets) unless running in Nutscrape -----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Soma DasGupta Sent: 19 November 2001 08:59 To: [EMAIL PROTECTED] Subject: 1 applet calling another If this is not the correct group to post to please let me know! I have a very basic question but I can't seem to figure it out. I'd like to call one applet from another one. (not in the html though). The first applet is a popup menu. The second is a 'information box' applet but subclassed from JApplet and contains a JFrame. How do I get the menu item to call my second applet? thanks, soma ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html