正文  图形图像 > Canvas/Bitmap >

我的J2ME编程练习(7)——Canvas2

/**Canvas2let.java**Created漀渀2005年4月19日,下午5:27*/import樀愀瘀愀砀.microedition.midlet.*;...


/*
 * 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);