wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes code error 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 "code error" Watch "code error" New topic
Author

code error

Brad Cantrell
Greenhorn

Joined: Aug 27, 2005
Posts: 22
This code brings up "cant find symbol" errors for lines 5, 12, 13 and 18 for classes JFrame and JButton. I just cant find whats wrong.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Hi Brad,

There's no such package as "java.swing" -- it's actually "javax.swing".


[Jess in Action][AskingGoodQuestions]
Brad Cantrell
Greenhorn

Joined: Aug 27, 2005
Posts: 22
Thanks Ernest
 
wood burning stoves
 
subject: code error
 
Similar Threads
Button's action event in Head first java
javax.awt.event does not exist!!!
Help With HeadFirst Java Chapter 12 page 360
Error in "Headfirst Java"
Swing graphics problem