• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help needed to run two applets

 
nimisha bansal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
My friend and i have made two different applets as a part of group project,Now we want to make one more applet with two buttons so that user can select what he want to do .Button 1 if he want to run applet no. 1
and press button 2 to run applet no. 2.Is it possible to run applet within a
applet.That is we want to run both applet from on main applet or some menu.
I don't know hoe to do that.
Please respond ASAP

Thanks
nimisha
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't run an applet within an applet, but you can use the showDocument() method to load a different web page that hosts either one of the two applets. Or you can use a CardLayout with 3 cards, one for each of the applets.
 
His brain is the size of a cherry pit! About the size of this ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!