Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

1st App with Netbeans J2ME - why this error?  RSS feed

 
Paul Carter
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to build my first app in J2ME using the tutorial on Marik Bialoglowy's blog http://bialoglowy.blogspot.com/2006_01_01_archive.html

But in the main class TowerMidlet.java, on the line:
public class TowerMidlet extends MIDlet implements CommandListener {

I get an error:
TowerMidlet is not abstract and does not override abstract method commandAction

Any ideas?

Many thanks in advance

Paul.
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as you are implementing the CommandListener interface, you MUST override the



method.

Best of luck ...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!