• Post Reply Bookmark Topic Watch Topic
  • New Topic

Basic Swing  RSS feed

 
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
 
Author and ninkuma
Marshal
Posts: 66400
156
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.
 
Bartender
Posts: 2123
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.
 
Rancher
Posts: 42975
76
  • 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.
 
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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!