J2ME中文教程 3 MIDP高级UI 的使用[9]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

public class TextBoxDemo

    extends MIDlet

    implements CommandListener {

 

    private Display display;

 

    private ChoiceGroup types;

    private ChoiceGroup options;

    private Form mainForm;

    private final static Command CMD_EXIT = new Command("Exit",

                                                           Command.EXIT, 1);

    private final static Command CMD_BACK = new Command("Back",

                                                           Command.BACK, 1);

    private final static Command CMD_SHOW = new Command("Show", Command.SCREEN,

                                                        1);

 

    /** TextBoxlabels

     *

     */

    static final String[] textBoxLabels = {

        "Any Character", "E-Mail", "Number", "Decimal", "Phone", "Url"

    };

 

    /**

     * 这里列出了几种TextBoxTypes

     */

    static final int[] textBoxTypes = {

本文关键:J2ME中文教程 3 MIDP高级UI 的使用
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top