javacompiler-errorsnetbeans6.5

java netbeans 6.5.3 shows cannot find symbol getText


Hey guys I can't understand why I am getting this error of cant find symbol getText. These are my classes

This is the error message.


Solution

  • I think you have forgotten the () in the end of method called.

    Try testField.getText() or testField.getText().toString().