Norm Radder wrote:The error message says the jTestfield1 variable is defined as an Object and the Object class does not have a method named getText()
Did you post the current code? I do not see where jTestField1 is defined in the posted code. The IDE thinks it is defined to be an Object???
Campbell Ritchie wrote:That is the wrong error message. There should be a red mark somewhere against your code; hover your moue over that and you should see an error message.
Norm Radder wrote:run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any>
C:\Users\elopez\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 1 second)
Elizabeth Lopez-Armenta wrote:
Elizabeth Lopez-Armenta wrote:@Norm Radder i use NetBeam IDE
Elizabeth Lopez-Armenta wrote:Your program must contain a method that displays the general information about the fitness center and its charges, a method to get all the necessary information to determine the membership cost, and a method to determine the membership cost. Use appropriate parameters to pass information in and out of a method.