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

📄 messageform.java

📁 《开发Nokia S40应用程序》源码(8-10章) 《开发Nokia S40应用程序》源码(8-10章)
💻 JAVA
字号:
package com.Series40Book;

import javax.microedition.lcdui.*;


public class MessageForm extends TextBox
                implements CommandListener {

  private Command submit;
  private Command cancel;

  public MessageForm () {
    super ("Message", "", 250, TextField.ANY);

    submit = new Command ("Submit", Command.OK, 1);
    cancel = new Command ("Cancel", Command.CANCEL, 1);
    addCommand (submit);
    addCommand (cancel);
    setCommandListener (this);
  }

  public void commandAction (Command c, Displayable d) {
    if (c == submit) {
      BlogClient.message = getString();
      BlogClient.startSubmit ();

    } else if (c == cancel) {
      BlogClient.initSession();
      BlogClient.showCamera();
    }
  }

}

⌨️ 快捷键说明

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