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)
There is no constructor to pass like this. Try to learn LWUIT and see this linkfor your reference. You can't use LWUIT command for J2me textbox.