⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 textform.java

📁 J2ME Game Programming的隋书源代码
💻 JAVA
字号:
/**
 * A simple form to display a bunch of text and then return to the calling
 * screen.
 */

import javax.microedition.lcdui.*;

public class TextForm extends Form implements CommandListener
{
   private Command back;
   private Screen home;

   public TextForm(Screen homeArg, String displayText)
   {
      // call the Form constructor
      super("");

      home = homeArg;
      append(displayText);

      // add the exit
      back = new Command("Back", Command.BACK, 1);
      addCommand(back);
      setCommandListener(this);
   }

   public void commandAction(Command command, Displayable displayable)
   {
      if (command == back)
         StarAssault.activateDisplayable(home);
   }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -