public class VoterMidlet extends MIDlet implements ScreenCallback {; private Display _display; // midlet has three screens private VoteResults voteResults = new VoteResults( (ScreenCallback) this);
public VoterMidlet() {; _display = Display.getDisplay(this); _display.setCurrent(voteResults); };
if ( command.equals("Exit") ) {; _screenCallback.exit(); }; else if ( command.equals("Vote") ) {; // get the selected item int selectedIndex = _voteResults.getSelectedIndex();
Vote newVote = new Vote(""+ selectedIndex, null, null);