Sapete dirmi dove sbaglio?
codice:
public void startApp() {
//initialize();
display = Display.getDisplay(this);
//ottengo il display
cmExit = new Command("Exit", Command.EXIT, 1);
cmBack = new Command("Back", Command.BACK, 1);
cmTerzo = new Command("Terzo", Command.SCREEN, 4);
cmPrimo = new Command("Primo", Command.SCREEN, 2);
cmSecondo = new Command("Secondo", Command.SCREEN, 3);
form = new Form("Form");
// creo il contenitore
form.addCommand(cmExit);
form.addCommand(cmPrimo);
form.addCommand(cmSecondo);
form.addCommand(cmTerzo);
form.setCommandListener(this);
tbAction = new TextBox("TextBox", "Inserisci i tuoi dati", 25, 0);
tbAction.addCommand(cmBack);
tbAction.setCommandListener(this);
StringItem sItem = new StringItem(null,"Applicazione fatta da Massimo");
//creo il componente
form.append(sItem);
//aggiungo il componente al contenitore
display.setCurrent(form);
//imposto come displayable corrente
}
L'errore è nella parte in neretto!