bthelp.java
来自「《开发Nokia S40应用程序》源码(8-10章) 《开发Nokia S40」· Java 代码 · 共 45 行
JAVA
45 行
package com.Series40Book;
import javax.microedition.lcdui.*;
import javax.bluetooth.*;
public class BTHelp extends Form implements CommandListener{
private BTDiscovery midlet;
private BTUtil btutil;
private Command back;
private Command services;
public BTHelp(BTDiscovery midlet, BTUtil btutil) {
super("Help");
this.midlet = midlet;
this.btutil = btutil;
back = new Command ("Back", Command.BACK,1);
addCommand (back);
setCommandListener( this );
displayhelp();
}
public void commandAction(Command c, Displayable d) {
if (c == back) {
midlet.display.setCurrent(midlet.infoForm);
}
}
public void displayhelp()
{
this.append("Bluetooth discovery. This demo displays the Bluetooth parameters of the local and remote" +
" devices. Just select either the local device or run a remote device discovery with an" +
" optional service discovery for a specific device. Remember that for some devices you" +
" need to switch on Bluetooth first.");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?