File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "code error" Watch "code error" New topic

code error

Brad Cantrell

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

Joined: Jul 08, 2003
Posts: 24166

Hi Brad,

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

[Jess in Action][AskingGoodQuestions]
Brad Cantrell

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