• Post Reply Bookmark Topic Watch Topic
  • New Topic

Basic Swing  RSS feed

 
James Nobles
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I must be missing a bracket or an import somewhere in this small bit of code. Can someone tell me what is wrong and why all my swing KeyWords are all getting errors. Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66264
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's always a good idea to include the text of the errors, verbatim.
 
Paweł Baczyński
Bartender
Posts: 2064
44
Firefox Browser IntelliJ IDE Java Linux Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should be
public class list1 extends JFrame.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The fact that "extend" doesn't get highlighted right there in your post should get you thinking.
 
Serg Masow
Ranch Hand
Posts: 50
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and after you have corrected extend to extends, you need to change the line
private JPanel deckList;
to
private JList deckList;
and then you'll be able to run your app




app.jpg
[Thumbnail for app.jpg]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!