Try it and see what happens.
Type: Posts; User: Norm
Try it and see what happens.
Time for a redesign of the project.
Go read up on how applets work and what their relationship with the browser is. The browser controls the GUI for the applet.
You will have to write all the code for that. The browser takes care of the applet referenced in the html page by the <applet tag. If you want something more to happen with things the browser...
You can have one class create an instance of another class and call its its methods using that instance.
It can be done inside of a method like the action listener of a button.
What do you expect...
The methods I posted will get a reference to other Applets being displayed by the browser in the same html page. That reference can be used to call methods in the other applet.
Look at the Applet class. It has a method to get the AppletContext that can be used to call the getApplets() method.
I was talking about a java class and method. With 1500+ posts I assume that you know what they are and can read their API doc and do a search for examples.
Try writing two simple applets that use...
If the applets are being shown in the same Html page, the AppletContext's getApplets() method will return a reference to the other applets. Those references can be used to call another applet.
Try making a simple test case:
have only one <APPLET tag,
put the html and jar file in same folder (no codebase)