張生工作室

          一切皆有可能

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            24 隨筆 :: 3 文章 :: 11 評論 :: 0 Trackbacks

          import javax.microedition.lcdui.Display;
          import javax.microedition.lcdui.Font;
          import javax.microedition.lcdui.Image;
          import javax.microedition.lcdui.List;
          import javax.microedition.midlet.MIDlet;
          import javax.microedition.midlet.MIDletStateChangeException;


          public class ListImage extends MIDlet {
           
           
           private List list;
           private Display dis;

           public ListImage() {
            // TODO Auto-generated constructor stub
           }

           protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
            // TODO Auto-generated method stub

           }

           protected void pauseApp() {
            // TODO Auto-generated method stub

           }

           protected void startApp() throws MIDletStateChangeException {
            
            
            list=new List("列表",List.MULTIPLE);
            Image img=null;
            try
            {
             
            img=Image.createImage("/mlogo.PNG");
            
            
            }
            catch(Exception e)
            {
             System.out.println("Error");
            }
            list.append("圖片", img);
            Font f=null;
            f=Font.getFont(Font.FACE_MONOSPACE,Font.STYLE_UNDERLINED, Font.SIZE_LARGE);
            list.setFont(0, f);
            dis=Display.getDisplay(this);
            dis.setCurrent(list);
            // TODO Auto-generated method stub

           }

          }



          張生工作室
          posted on 2008-11-26 09:54 張生工作室 閱讀(253) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 宜丰县| 新沂市| 南华县| 镇雄县| 青田县| 墨脱县| 延庆县| 灵山县| 银川市| 林西县| 霍邱县| 济阳县| 大邑县| 冷水江市| 精河县| 河东区| 尼木县| 泾川县| 汉阴县| 开江县| 贺州市| 六枝特区| 北流市| 苍梧县| 诏安县| 时尚| 洛扎县| 石城县| 家居| 安岳县| 阿巴嘎旗| 什邡市| 丰城市| 洛川县| 鄢陵县| 瑞丽市| 宜川县| 策勒县| 吉安县| 获嘉县| 浦县|