Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

take a look at this please

 
Sartaj Syed
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I compile the following code I get 2 errors saying : unable to resolve symbol input and feedback at th if source == statements. input and feedback are Buttons previously defined in the constructor code.

(edited by Cindy to format code - and yes - the if statement just ENDS with the open bracket - ???)
[ January 24, 2002: Message edited by: Cindy Glass ]
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You defined the buttons within the constructor and are trying to reference them outside of the constructor. I won't get into the whole frame inner class within the if statement.
 
Sartaj Syed
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cindy , the lower part of the feedback code did not paste, that is why you are seeing the open bracket.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic