read more...
Monday, March 22, 2010
SimpleTimerMIDlet
public class SimpleTimerMIDlet extends MIDlet implements CommandListener {
private Command exitCommand = new Command("Exit", Command.EXIT, 1);
private Command scheduleCommand = new Command("schedule", Command.SCREEN, 1);
private TextBox aTextBox = new TextBox("Setting", "Content", 20, 0);
public static String aMessage = "";
Display display;
private Timer aTimer;
private SimpleTimerTask aTimerTask;
public SimpleTimerMIDlet() {
display = Display.getDisplay(this);
}
public void startApp() {
aTextBox.addCommand(exitCommand);
aTextBox.addCommand(scheduleCommand);
aTextBox.setCommandListener(this);
display.setCurrent(aTextBox);
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment