Hi, 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 you understand this please help
Thanks.
Printable View
Hi, 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 you understand this please help
Thanks.
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.