The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.



Posted by Pavan Kumar Keely on December 31, 2001 at 12:33 AM

> hey guys

> just help me & tell me whether an applet can invoke another applet from within its body or not? if we click a button in one applet it should open another applet within the same applet.
> Please do write a small & clear example too
> also all the steps needed to call, if any special


I don't think you can call an applet from another applet. But I don't understand the situation where you want to call an applet from another. But there is a workaround according to my knowledge...

Try initiating two applets once. That means start two applets and the make the size of the applet, which you want to invoke dynamically as (0,0).
Whenever you click the button, just resize the applet.
Note: If the second applet doesn't take much of the resources this won't be a big problem..

Try doing this...

If you want to tell me the actual situation, then I may try for another workaround..
Please feel free to contact me at

Pavan Kumar Keely,
Sostware Developer, Quillis India


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us