wood burning stoves 2.0*
The moose likes Applets and the fly likes Unable to call one applet to another applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Unable to call one applet to another applet" Watch "Unable to call one applet to another applet" New topic
Author

Unable to call one applet to another applet

Naren verma
Greenhorn

Joined: Sep 10, 2013
Posts: 9
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
My first question is: why do you want two applets? Why can't both be folded into one, possibly using a CardLayout?


Ping & DNS - my free Android networking tools app
Naren verma
Greenhorn

Joined: Sep 10, 2013
Posts: 9
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.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

That's no reason.

You didn't even look at the CardLayout that Ulf suggested, did you?


luck, db
There are no new questions, but there may be new answers.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
Yes, it sounds like both parts belong together - so it would make sense to keep them in the same applet.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to call one applet to another applet
 
Similar Threads
How to kill an applet
Opening/Calling up applet window from an Applet application
Avoid several launches of the same applet at the same time within the same page
Need help in linking two applets(Navigation)
How to call one applet from another?