Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Suggestions needed : 'Calling' whole class programs
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xLockx




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: