最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
我的J2ME编程练习(7)――Canvas2
时间:2022-07-02 17:46:20 编辑:袖梨 来源:一聚教程网
/*
* 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);
相关文章
- 《无限暖暖》围巾蚯蚓具体作用介绍 12-24
- 《无限暖暖》星夜守望连衣裙获得方法介绍 12-24
- 《无限暖暖》魔物试炼幻境解锁方法介绍 12-24
- 《无限暖暖》磐岩晶石获得方法介绍 12-24
- 《无限暖暖》巨石岩仔打法攻略分享 12-24
- 《无限暖暖》布布果在哪 12-24