/* * Canvas2let.java * * Created on 2005年4月19日, 下午5:27 */ import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * * @author Administrator * @version */ public class Canvas2let extends MIDlet implements CommandListener { private ChoiceGroup faceChoice; private ChoiceGroup styleChoice; private ChoiceGroup sizeChoice; private Command okCommand; private Command exitCommand; private Command backCommand; private TextBox faceTextBox; private TextBox styleTextBox; private TextBox sizeTextBox; private Form choiceForm; private Display aDisplay; private MyCanvas canvas; int face; int size; int style; public Canvas2let(){ choiceForm=new Form("Select Font"); faceChoice=new ChoiceGroup("外观",Choice.EXCLUSIVE); faceChoice.append("PROPORTIONAL",null); faceChoice.append("MONOSPACE",null); faceChoice.append("SYSTEM",null); styleChoice=new ChoiceGroup("风格",Choice.MULTIPLE); styleChoice.append("PLAIN",null); styleChoice.append("BOLD",null); styleChoice.append("ITALIC",null); styleChoice.append("UNDERLINED",null); sizeChoice=new ChoiceGroup("大小",Choice.EXCLUSIVE); sizeChoice.append("SMALL",null); sizeChoice.append("MEDIUM",null); sizeChoice.append("LARGE",null); |