• lwuit Developer_Guide

    lwuit的开发文档 Hello World for MIDP import com.sun.lwuit.Display; import com.sun.lwuit.Form; import com.sun.lwuit.Label; import com.sun.lwuit.layouts.BorderLayout; import com.sun.lwuit.plaf.UIManager; import com.sun.lwuit.util.Resources; public class HelloMidlet extends javax.microedition.midlet.MIDlet { public void startApp() { //init the LWUIT Display Display.init(this); // Setting the application theme is discussed // later in the theme chapter and the resources chapter try { Resources r = Resources.open("/myresources.res"); UIManager.getInstance().setThemeProps( r.getTheme(r.getThemeResourceNames()[0]) ); } catch (java.io.IOException e) { } Form f = new Form(); f.setTitle("Hello World"); f.setLayout(new BorderLayout()); f.addComponent("Center", new Label("I am a Label")); f.show(); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } }

    0
    57
    1.65MB
    2010-10-21
    3
  • 习惯养成

    连续回答技能树练习题 1 天,每天答对至少 1 题
  • 创作能手

    授予每个自然周发布1篇到3篇原创IT博文的用户
关注 私信
上传资源赚积分or赚钱