📄 votermidlet.java
字号:
package com.itpath.examples.voter;import com.itpath.examples.voter.intf.*;import com.itpath.examples.voter.util.*;import com.itpath.examples.voter.ui.*;import java.io.*;import java.util.*;import javax.microedition.midlet.*;import javax.microedition.lcdui.*;public class VoterMidlet extends MIDlet implements ScreenCallback{ private Display _display; // midlet has three screens private VoteResults voteResults = new VoteResults( (ScreenCallback) this); public VoterMidlet() { _display = Display.getDisplay(this); _display.setCurrent(voteResults); } public void exit() { try { this.destroyApp(true); } catch (MIDletStateChangeException e) {} } public void startApp() throws MIDletStateChangeException { } public void pauseApp() { } public void destroyApp(boolean unconditional) throws MIDletStateChangeException { notifyDestroyed(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -