Please post some code. Is JTextField the variable name of the textbox? Is it declared as an instance variable of the GUI class? Please refrain from using the class name as the variable name...
Joined: Apr 19, 2009
I managed to solve this problem. I had to set the modifier property of JTextField (yes, a textfield) to public and remove the tick from "Use local variable" - Both under Code tabs in Netbeans.