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

📄 cubeabout.java

📁 wince 5.0上基于personal java写的的虚拟魔方
💻 JAVA
字号:

/*
 * Java Virtual Cube
 * -----------------
 *
 * Copyright 1996, Song Li  
 * URL: http://www.cs.umbc.edu/~sli2
 *
 * 
 * You can use the code for any nonprofittable use. But remember to mention
 * the authors' names in your revised program. You are also encouraged to
 * improve the program or give your comments and bug reports. If there are
 * further questions, please contact me and I'll be glad to help. My E-Mail
 * address is: sli2@gl.umbc.edu.
 *
 */


import java.awt.* ;
import java.awt.event.* ;



class CubeAbout extends Frame {
    Button  OK = new Button (" Close ") ;
    Label   Caption = new Label ("Virtual Cube   V1.2", Label.CENTER) ;
    Label   Space   = new Label ("                          ") ;
    Label   Author  = new Label ("(C) Song Li, 1996", Label.CENTER) ;
    Label   Address = new Label ("www.cs.umbc.edu/~sli2", Label.CENTER) ;
    Label   Space2  = new Label ("                          ") ;
    Label   Author2 = new Label ("Portion of Code By David W. Liu", Label.CENTER) ;
    Label   Address2= new Label ("reality.sgi.com/employees/davidliu_mti", Label.CENTER) ;
    Label   Space3  = new Label ("                          ") ;
    Label   Hotkey  = new Label ("To View: Drag your mouse.", Label.LEFT) ;
    Label   Hotkey2 = new Label ("To Spin: Use mouse's right button, or", Label.LEFT) ;
    Label   Hotkey3 = new Label ("Drag your mouse with CTRL down.", Label.LEFT) ;
    Label   Space4  = new Label ("                          ") ;

    public CubeAbout () {
        super ("Virtual Cube") ;
        setSize (Toolkit.getDefaultToolkit().getScreenSize().width, Toolkit.getDefaultToolkit().getScreenSize().height /2) ;
        setResizable (false) ;
        setLayout (new FlowLayout (FlowLayout.CENTER, 1000, 0)) ;

        add (OK) ;
        add (Caption) ;
//!!        add (Space) ;
        add (Author) ;
        add (Address) ;
//!!        add (Space2) ;
        add (Author2) ;
        add (Address2) ;
//!!        add (Space3) ;
        add (Hotkey) ;
        add (Hotkey2) ;
        add (Hotkey3) ;
//!!        add (Space4) ;
    }

    public synchronized boolean handleEvent (Event event) {
        System.out.println( event);
        if (event.id != Event.ACTION_EVENT) {
            if (event.id == WindowEvent.WINDOW_CLOSING) {
                dispose ();
                return true;
            } else
                return false ;
        }
        
        if (" Close ".equals (event.arg))
            dispose () ;
        return true ;
    }
}

⌨️ 快捷键说明

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