-
storing information
I have one class that creates an "application" GUI and one of my other classes is full of getters and setters to help save the information that is typed by the user in the JTextFields. However, when i try to call the setters from the application class, i get the "Cannot make a static reference to the non-static method" error. Any suggestions on where to go from here?
-
Seems you are accessing non-static member on static contest, according to your error message. You cannot do that.
-
Can u paste ur line of code Here.
Seems like you are calling the setter method without instantiating the 'SetterClass'
-
U might be Accessing non-static member variables from static methods .Post the code 4 more help