Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error

 
Mike Shn
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I wrote the code that draw an Applet put button and textfield that allows to user enter Complex Number. The Aplet opens but the button and textfield don't work at all.
Here is code:

Thanks
(edited by Cindy to format code - you could use the little pad and pencil icon to do this yourself)
[This message has been edited by Cindy Glass (edited November 15, 2001).]
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike, you have been around here for a while now. Can't you PLEASE put [ code][ /code] tags (without the spaces) around your code so that it is READABLE?
Cindy
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike you might want to use an anonymous action listener for the button and just call a method within your class. You are trying to do more in the listener than you should. You might try making your button and textfields instance variables and see what that does. I can't get your code to compile.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic