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

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

本文简介:

        TextField.ANY, TextField.EMAILADDR, TextField.NUMERIC,

        TextField.DECIMAL, TextField.PHONENUMBER, TextField.URL

    };

 

    private boolean firstTime;

   

    public TextBoxDemo() {

        display = Display.getDisplay(this);

        firstTime = true;

    }

 

    protected void startApp() {

        if(firstTime) {

            mainForm = new Form("Select a Text Box Type");

            mainForm.append("Select a text box type");

   

            // the string elements will have no images

            Image[] imageArray = null;

   

            types = new ChoiceGroup("Choose type", Choice.EXCLUSIVE,

                                                textBoxLabels, imageArray);

            mainForm.append(types);

   

            // 进一步选择的选项

            String[] optionStrings = { "As Password", "Show Ticker" };

            options = new ChoiceGroup("Options", Choice.MULTIPLE,

                                                  optionStrings, null);

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

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

go top