📄 josekimidlet.jad
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov Date: 2006-1-22 9:47:09
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: josekiMIDlet.java
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
public class josekiMIDlet extends MIDlet
implements CommandListener
{
public josekiMIDlet()
throws Exception
{
canvas = null;
helpForm = null;
helpString = null;
canvas = new josekiCanvas(this, new josekiBoard(new josekiLibrary("/SGF.txt", 48440)));
helpForm = new Form("\u5E2E\u52A9");
helpString = new StringItem("", "\u624B\u673A\u7248\u56F4\u68CB\u5B9A\u5F0F\u5927\u8F9E\u5178\u3002\u63095\u952E\u8D70\u68CB\uFF0C\u63091\u952E\u6062\u590D\u3002\u6709\u53EF\u9009\u7684\u53D8\u5316\u65F6\uFF0C\u4E0A\u4E0B\u5DE6\u53F3\u952E\u53EF\u4EE5\u9009\u62E9\u843D\u5B50\u4F4D\u7F6E\u3002\u68CB\u76D8\u5916\u51FA\u73B0\u9ED1\u6846\u65F6\u8868\u660E\u6B64\u5B9A\u5F0F\u5DF2\u663E\u793A\u5B8C\u6BD5\u3002(c) 2003 www.contextfree.net");
helpForm.append(helpString);
helpForm.addCommand(backCommand);
helpForm.addCommand(exitCommand);
helpForm.setCommandListener(this);
}
protected void startApp()
{
Displayable displayable = Display.getDisplay(this).getCurrent();
if(displayable == null)
Display.getDisplay(this).setCurrent(canvas);
}
public void doActions(Command command)
{
if(command == exitCommand)
{
destroyApp(false);
notifyDestroyed();
} else
if(command == helpCommand)
Display.getDisplay(this).setCurrent(helpForm);
}
protected void destroyApp(boolean flag)
{
}
protected void pauseApp()
{
}
public void commandAction(Command command, Displayable displayable)
{
if(command == exitCommand)
{
destroyApp(false);
notifyDestroyed();
} else
if(command == backCommand)
Display.getDisplay(this).setCurrent(canvas);
}
public final Command exitCommand = new Command("\u9000\u51FA", 7, 1);
public final Command helpCommand = new Command("\u5E2E\u52A9", 5, 2);
public final Command backCommand = new Command("\u8FD4\u56DE", 2, 1);
private static final int sgfSize = 48440;
private static final String sgfFile = "/SGF.txt";
private josekiCanvas canvas;
private Form helpForm;
private StringItem helpString;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -