?? wapide.java
字號:
package wapide;import javax.swing.UIManager;import java.awt.*;/** * WAP Application Development Kit * Description: This project seeks to develop a free distribution of a cross-platform WAP Application Development Kit with a fully integrated development environment which supports WAP version 1.2. It is being developed as a partial fulfillment to my Master's Degree at the University of Asia and the Pacific(UA&P) in Information Technologies. * The Kit will include the following components: * 1. A fully integrated development environment with support for expansion modules. * 2. A WML/WMLScript editor with color coding support for WAP syntax. * 3. A micro-browser for testing new WAP programs (will use html initaillt for simple display only). * 4. A visual WAP designer for easy WAP creation. * 5. WAP encoders and decoders. * The kit will eventually have the following components added to it: * 1. WMLScript support for the micro-browser and encoders and decoders. * 2. WBMP support in the mico-browser and WAP designer. * 3. Full WAP support in the micro-browser. * Copyright: Copyright (c) 2001 * @author Mark Busman * @version 1.0 * Contact Info: cougar@skyinet.net * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */public class WAPIDE { boolean packFrame = false; /**Construct the application*/ public WAPIDE() { IDEFrame frame = new IDEFrame(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = frame.getSize(); if (frameSize.height > screenSize.height) { frameSize.height = screenSize.height; } if (frameSize.width > screenSize.width) { frameSize.width = screenSize.width; } frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); frame.setVisible(true); } /**Main method * param String[] Commandline Arguments. DOES NOT TAKE ANY!!!!*/ public static void main(String[] args) { // display copyright String message = "WAPIDE version 1.0, Copyright (C) 2003 Mark Busman\n"; message = message + "WAPIDE comes with ABSOLUTELY NO WARRANTY;\nfor details see Copying.txt\n"; message = message + "This is free software, and you are welcome to redistribute it under certain conditions; see Copying.txt for the details."; System.out.println(message); try { // load the main IDE frame UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) { e.printStackTrace(); } new WAPIDE(); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -