Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

code error

 
Brad Cantrell
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Brad,

There's no such package as "java.swing" -- it's actually "javax.swing".
 
Brad Cantrell
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ernest
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic