如题,这个方法书上只是写了4个参数的意思,和整个函数的作用。但是却没有例子,我自己试了下,发现没用对。
现在求一例子,最好能带上注释,谢谢了
------解决方案--------------------------------------------------------
Midlet主类
- Java code
import javax.microedition.midlet.*;import javax.microedition.lcdui.*;public class MainMidlet extends MIDlet { private static MainMidlet instance; private static Display display; public MainMidlet() { instance = this; display = Display.getDisplay(this); CalendarForm calendarForm = new CalendarForm("日期Form"); display.setCurrent(calendarForm); } public void startApp() { } public void pauseApp() { } public void destroyApp(boolean unconditional) { } public static void quitApp() { instance.destroyApp(true); instance.notifyDestroyed(); instance = null; } public static Display getDisplay() { return display; }}