?? about.java
字號:
//------------------------------------------------------------------// ____ _____ _ // / ___| ___ _ __ _ _ | ____|_ __(_) ___ ___ ___ ___ _ __ // \___ \ / _ \| '_ \| | | | | _| | '__| |/ __/ __/ __|/ _ \| '_ \ // ___) | (_) | | | | |_| | | |___| | | | (__\__ \__ \ (_) | | | | // |____/ \___/|_| |_|\__, | |_____|_| |_|\___|___/___/\___/|_| |_| // |___/ //------------------------------------------------------------------// 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -