?? hexmidlet.java
字號:
package cnmyth;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.TextBox;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
/**
* @author cnmyth
* @version
* 2007-7-18 18:30:27
*/
public class HexMidlet extends MIDlet {
private Display display;
private Command myCommand;
public HexMidlet() {
super();
myCommand = new Command("查詢", Command.OK, 1);
}
protected void startApp() throws MIDletStateChangeException {
display = Display.getDisplay(this);
TextBox t = new TextBox("cnmyth", "您的midp版本為:"+System.getProperty("microedition.profiles"), 256, 0);
TextBox query = new TextBox("", " ", 300,2);
MyCanvas my=new MyCanvas();
my.addCommand(myCommand);
display.setCurrent(my);
}
protected void pauseApp() {
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
}
public String ChangeHex(String str){
return String.valueOf(Integer.toHexString(Integer.parseInt(str)));
}
public String ChangeB(String str){
return String.valueOf(Integer.toBinaryString(Integer.parseInt(str)));
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -