It's not a secret anymore!
The moose likes Beginning Java and the fly likes Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error" Watch "Error" New topic


Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
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:

(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"

Joined: Sep 29, 2000
Posts: 8521
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?

"JavaRanch, where the deer and the Certified play" - David O'Meara
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
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.
I agree. Here's the link:
subject: Error
It's not a secret anymore!