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

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

本文简介:

                Image icon = Image.createImage("/midp/uidemo/Icon.png");

             

             //注意!这里的路径是相对路径,请大家千万注意这里的细节问题

           imageArray = new Image[] {

                    icon,

                    icon,

                    icon

                };

            } catch (java.io.IOException err) {

                // ignore the image loading failure the application can recover.

            }

   

            String[] stringArray = {

                "Exclusive",

                "Implicit",

                "Multiple"

            };

            mainList = new List("Choose type", Choice.IMPLICIT, stringArray,

                                imageArray);

            mainList.addCommand(CMD_EXIT);

            mainList.setCommandListener(this);

            display.setCurrent(mainList);

            firstTime = false;

        }

    }

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

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

go top