?? dbook.java
字號:
package com.viacube.j2me.component;
import mwt.Button;
import mwt.EventListener;
import mwt.Label;
import com.viacube.j2me.model.ImageList;
public class DBook extends SubWindow implements EventListener {
// static final int ACTION_CLOSE = 12;
// static final int ACTION_SELECT = 11;
Button button;
public DBook(int x, int y, int width, int height) {
super(x, y, width, height,true);
add(new Label(2,3,60,10,"DBook"));
for(int i=0;i<3;i++){
button = new Button(1, 14+i*20, width-2, 20, "Info "+i, this, ACTION_SELECT);
button.setIconImage(ImageList.small[0]);
add(button);
}
// this.setEnabled(false);
}
// public void processEvent(int eventType, Component c, Object[] args) {
// switch ( eventType) {
// case EVENT_ACTION: // when a button is pressed an event action is triggered
// switch ( ((Button) c).getActionType()) {
// // case ACTION_EXIT: exit = true; return;
// case ACTION_SELECT:
// final Window dialog = new Window(MainWindow.mw.width / 2 - 30, MainWindow.mw.height / 2 - 30, 60, 60){
// public int getFocusAction(long key) {
// switch(Midlet.canvas.getGameAction((int)key)) {
// case Canvas.FIRE: return FOCUSACTION_FIRE;
// default: return FOCUSACTION_NONE;
// }
// }
// };
// dialog.add(new Label(5, 12, 45, 20, "Click Me!"));
// dialog.add(new Button(10, 35, 40, 20, "Close", this, ACTION_CLOSE));
// dialog.setSkin(Window.STYLE_DEFAULT, new Skin(new int[] { 0xeeeeee,0xB2C4DF }));
// dialog.setFocusFirst();
// MainWindow.mw.win.dialogOpen(dialog);
// break;
// case ACTION_CLOSE:
// MainWindow.mw.win.dialogClose();
// break;
// }
// break;
// }
// }
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -