How i can change a variable in the main class from the class with gui?
How i can change a variable in the main class from the class with gui?
You need to have a reference to the main class in the gui class, then call a method that modifies the variable.