posted 12 years ago
Ok, thanks. That's whati tried to do now, but i have some problems with the variables. I have a class Clients, where i have 2 public variables: hasChanged, of type boolean and clientId of type int. When window closes i set hasChanged to be true, and clientId to the id of the selected client. The problem is when i try to access these variables from the other window, after this one closes. I get the message: non-static variable cannot be referenced from static context. And i have no idea why. The variables are global, i accessed them with Clients.hasChanged and Clients.clientId