public void valueScreen() { Form props=new Form("get text box value"). props.append(txtBox.getString()). props.addCommand(exitCommand). props.setCommandListener(this). display.setCurrent(props). }
public void commandAction(Command c, Displayable s) { if (c == exitCommand) { destroyApp(false). notifyDestroyed(). } if(c==getCommand) { valueScreen(). } }