*The code to implement the Menu class is as follows:
<pre>
// Push a screen onto the UI stack for rendering. ButtonField start = new ButtonField( "Start", ButtonField.CONSUME_CLICK | ButtonField.FIELD_HCENTER); ButtonField about = new ButtonField( "About", ButtonField.CONSUME_CLICK | ButtonField.FIELD_HCENTER); HorizontalFieldManager horizontalFieldManager = getFieldManager(); VerticalFieldManager innerManager = new VerticalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH | HorizontalFieldManager.USE_ALL_HEIGHT); screen.add(horizontalFieldManager); horizontalFieldManager.add( innerManager ); innerManager.add(start); innerManager.add(about); innerManager.setPadding((Display.getHeight()/2)-30, 0, 0, 0);
start.setChangeListener( new FieldChangeListener() { public void fieldChanged( Field arg0, int arg1 ) { pushScreen(new Screen2()); } } ); pushScreen( screen);
</pre>
*Next we will be implementing Screen1 which will provide the user with a nice background image, as well as two buttons (one to view the about information, and one to begin drawing).