about.java

来自「索爱的蓝牙例程源程序」· Java 代码 · 共 62 行

JAVA
62
字号
//------------------------------------------------------------------//  ____                      _____      _                           // / ___|  ___  _ __  _   _  | ____|_ __(_) ___ ___ ___  ___  _ __   // \___ \ / _ \| '_ \| | | | |  _| | '__| |/ __/ __/ __|/ _ \| '_ \  //  ___) | (_) | | | | |_| | | |___| |  | | (__\__ \__ \ (_) | | | | // |____/ \___/|_| |_|\__, | |_____|_|  |_|\___|___/___/\___/|_| |_| //                    |___/                                          //------------------------------------------------------------------// Copyright (c) 2003 Sony Ericsson Mobile Communications AB//                    Research Trinagle Park, NC 27709//  // This software is provided "AS IS," without a warranty of any kind. // ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, // INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A // PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.////------------------------------------------------------------------package example.bluetooth;import javax.microedition.lcdui.*;/** * About dialog contains information about Sony Ericsson. * * @author Paul H. Nichols * @version 1.0 */public class About {    private static String infoString =        "Copyright 2003 Sony Ericsson Mobile Communications AB, Research Triangle Park, NC. All Rights Reserved.\n\n"      + "This is an example Bluetooth MIDlet that was design for the Sony Ericsson P900/P907 phone. "      + "Support for JSR-82 and a touch screen are required. "      + "Run this MIDlet on two phones. Connect one phone as the server and the other as the client. "      + "After the phones have connected, anything that you drawn on either screen will be "      + "displayed on both phones. "      + "The icon in the corner of the screen indicates the status of the Bluetooth connection. "      + "Make sure that you have Bluetooth on in the control panel.\n\n"      + "Author: Paul Nichols\n"      + "Date: November, 2003\n"      + "Version: 1.0";    /**     * Put up the About box and when the use click ok return     * to the previous screen.     */    public static void showAbout(Display display) {	Alert aboutBox = new Alert("About Sony Ericsson");	aboutBox.setTimeout(Alert.FOREVER);        try {                   aboutBox.setImage(Image.createImage("/images/SElogo.png"));        }        catch (Exception e) {        }	aboutBox.setString(infoString);	display.setCurrent(aboutBox);    }}

⌨️ 快捷键说明

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