Computer Science Canada

Suggestions needed : 'Calling' whole class programs

Author:  xLockx [ Mon Jan 09, 2006 4:11 pm ]
Post subject:  Suggestions needed : 'Calling' whole class programs

Basically in a nut shell I want to call a whole program with an action Listener so for example
code:
simpleMath.addActionListener(
                new ActionListener()
               {
                   public void actionPerformed(ActionEvent e)
                  {
                     buttonPressed.setText("SimpleMath.. Now Loading..");
/*Calls the simpleMath program from start to finish - perhaps in a new console window?*/
                  }
               });


I know to call a method from another program it would be something along the lines of...
code:
ClassName.methodName();

Any ideas? I read about one method (this was a while so I have forgotten the code) however I beleive it needed to be used in the main static method - my applet does not have either. The program I want to call is another applet class if that helps any...

Thanks.


: