Hi everybody,
i am trying to write an application which requires me to call an
applet from another applet. the calling applet has a button, pressing which calls the called applet . the "actionPerformed(ActionEvent e)" method of the calling applet has the following code:
public void actionPerformed(ActionEvent e)
{
String buttonpressed = e.getActionCommand();
if(buttonpressed == "Statistics")
{
mystat.init();
mystat.setVisible(true);
}
}
mystat is the instance of the called applet class.
Essentially I want a new window to appear, which starts the calling applet, when I press the button on the calling applet.
any help is greatly appreciated.
roy