源代码....有详细的注释
public BTFIRMIDlet()
{
alert = new Alert("程序信息");
alert.setTimeout(3000);
try
{
imgSplash = Image.createImage("/splash.png");
alert.setImage(imgSplash);
}
catch (IOException _ex)
{
imgSplash = Image.createImage(1, 1);
}
form = new Form("");
StringItem item = new StringItem("说明:", "本五子棋游戏支持蓝牙双人对战");
form.append(item);
choiceType = new ChoiceGroup("请选择连接类型:", 1);
choiceType.append("服务器", null);
choiceType.append("客户端", null);
form.append(choiceType);
CMD_PLAY = new Command("开始", 4, 2);
CMD_EXIT = new Command("退出", 3, 1);
form.addCommand(CMD_PLAY);
form.addCommand(CMD_EXIT);
form.setCommandListener(this);