aspose file tools*
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
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: 42613
    
  65
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: 4658
    
    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: 42613
    
  65
Yes, it sounds like both parts belong together - so it would make sense to keep them in the same applet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to call one applet to another applet