allData = messagebuffer.toString(); dataBox = new TextBox("You selected...", allData, 80, TextField.ANY); checkoutCommand = new Command("Checkout", Command.SCREEN, 1); moreCommand = new Command("Buy More", Command.SCREEN, 1); exitCommand = new Command("Exit", Command.EXIT, 1); dataBox.addCommand(checkoutCommand); dataBox.addCommand(moreCommand); dataBox.setCommandListener(this); display.setCurrent(dataBox);