PDA

View Full Version : Opening other java files through java


Pieterman
05-10-2005, 07:00 PM
I have a menu class which takes in variables and now i want to be able to press a button and then a different java file runs and uses some of the variables in the menu class.
if u understand this please help
Shot

somaiah
05-11-2005, 02:14 AM
You're not running java files, you're running java objects.

There should no problem with this - all you will need is access to the correct packages.

When you click the button, simply instantiate the new object to get a new instance and call a method on it.

S.