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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: code error