wood burning stoves*
The moose likes Beginning Java and the fly likes Button's action event in Head first java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Button Watch "Button New topic
Author

Button's action event in Head first java

Dinesh Kumar Tadepalli
Greenhorn

Joined: Jun 17, 2009
Posts: 15
I was trying to run the program on pg 360 (head first java) but it gives me a "main" exception. the compiler says it cannot find a main class.

The code is as follows:



Can someone help me what went wrong and why is not able to compile?

thanks
Dinesh Kumar Tadepalli
Greenhorn

Joined: Jun 17, 2009
Posts: 15
sorry... i realized my mistake...

i said java SimpleGui1B.java instead of javac SimpleGui1B.java

thanks

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Button's action event in Head first java
 
Similar Threads
javax.awt.event does not exist!!!
Error in "Headfirst Java"
code error
understanding simple gui code
Swing graphics problem