• Post Reply Bookmark Topic Watch Topic
  • New Topic

class is not abstract?  RSS feed

 
Ryan Daguman
Ranch Hand
Posts: 33
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I've encountered this error just now when I tried to compile a Java program for an applet. Here's my partial code below:



So what does it mean when your class is not abstract? What will I do then?
 
Ryan Daguman
Ranch Hand
Posts: 33
Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay I guess I need to type ItemStateChanged and ActionPerformed methods first to get rid of those errors messages.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37462
537
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means one or more methods defined in Applet aren't in your class. You are missing:

ActionListener.actionPerformed(ActionEvent)
ItemListener.itemStateChanged(ItemEvent)
 
Ryan Daguman
Ranch Hand
Posts: 33
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay thank you. I understand now. I appreciate it.
 
Amir Al Take
Greenhorn
Posts: 15
Java Mac Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ryan,

I just want to add the next time when you post a problem, please provide the exact error message so that people here can easily help you. Just by saying showing your code is not enough in general. This was just a reminder.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!