Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Help With HeadFirst Java Chapter 12 page 360 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help With HeadFirst Java Chapter 12 page 360" Watch "Help With HeadFirst Java Chapter 12 page 360" New topic
Author

Help With HeadFirst Java Chapter 12 page 360

Adam Burda
Ranch Hand

Joined: Jul 19, 2011
Posts: 40
Hello all, Can someone help me out. Im stuck on page 360 in HeadFirst Java ( Getting a button's ActionEvent ). I did see other post's on this whit no luck for me.
Here is the code.



And here is the error.



[Thumbnail for Java01.jpg]

Costi Ciudatu
Ranch Hand

Joined: Oct 24, 2006
Posts: 74
Don't worry, it's just a typo: you apparently wrote actionPreformed instead of actionPerformed.
Adam Burda
Ranch Hand

Joined: Jul 19, 2011
Posts: 40
Well I do Thank you for your help. I feel like the idiot.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

No problem at all. We've all faced the same problem numerous times in our careers. Please post the text of the error/exception next time. It is much easier to read (see this).


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help With HeadFirst Java Chapter 12 page 360
 
Similar Threads
Button's action event in Head first java
javax.awt.event does not exist!!!
Error in "Headfirst Java"
code error
understanding simple gui code