import javax.microedition.lcdui.*; public class Menu { static int shy,red,cur; static String []str=new String[] {"New Game","Options","About","Exit"}; final static Font fi=Font.getFont(Font.FACE_MONOSPACE,Font.STYLE_BOLD,Font.SIZE_MEDIUM); static void drawMenu(Graphics g,int w,int h,int cur) { g.setFont(fi); for (int i=0;i<4;i++) { if (i==0) shy=-30; shy+=30; if (cur==i) { red=255; } else { red=0; } g.setColor(red,170,170); g.drawString(str[i],w/2,h/2+shy,Graphics.TOP|Graphics.HCENTER); } } public Menu() { } }