Results 1 to 4 of 4
Thread: storing information
- 03-26-2009, 04:10 AM #1
Member
- Join Date
- Mar 2009
- Posts
- 4
- Rep Power
- 0
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?
- 03-26-2009, 04:34 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Seems you are accessing non-static member on static contest, according to your error message. You cannot do that.
- 03-26-2009, 07:07 AM #3
Member
- Join Date
- Feb 2009
- Posts
- 22
- Rep Power
- 0
Can u paste ur line of code Here.
Seems like you are calling the setter method without instantiating the 'SetterClass'
- 03-26-2009, 08:10 AM #4
Member
- Join Date
- Mar 2009
- Posts
- 42
- Rep Power
- 0
Similar Threads
-
Storing the data in a file
By vasavi.singh in forum New To JavaReplies: 4Last Post: 02-20-2009, 04:01 PM -
Help in storing Information
By care in forum New To JavaReplies: 1Last Post: 12-01-2008, 09:16 PM -
storing and retrieving a file as such
By anil_manu in forum Advanced JavaReplies: 0Last Post: 03-11-2008, 01:27 PM -
Storing data permanently
By shaungoater in forum New To JavaReplies: 2Last Post: 03-10-2008, 04:18 PM -
Storing Data
By Khorod in forum New To JavaReplies: 1Last Post: 08-03-2007, 05:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks