Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to call one applet to another applet  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have created 2 applet.
1)main.java
2)emp.java

in main applet i created one button(click here)
if any one click on button emp.java applet wil open?

may i know the codding? How to call one applet to another applet
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My first question is: why do you want two applets? Why can't both be folded into one, possibly using a CardLayout?
 
Naren verma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because of my main.java program is login form and emp.java program is emp details.

How to cal emp.java applet when click on login.
 
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's no reason.

You didn't even look at the CardLayout that Ulf suggested, did you?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it sounds like both parts belong together - so it would make sense to keep them in the same applet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!