error in midlet while implementing command..

Posted by garima on Stack Overflow See other posts from Stack Overflow or by garima
Published on 2011-01-07T05:19:48Z Indexed on 2011/01/07 5:53 UTC
Read the original article Hit count: 274

Filed under:
|
|
|

hi I have imported

import com.sun.lwuit.Command; import javax.microedition.midlet.; import javax.microedition.lcdui.;

in my code but still the following errors are coming...

exitCommand = new Command("Exit", Command.EXIT, 2); //line 1 textbox.addCommand(exitCommand); //line 2

Command.EXIT cannot be resolved..

The method addCommand(Command) in the type Displayable is not applicable for the arguments (Command)

© Stack Overflow or respective owner

Related posts about java-me

Related posts about command