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

📄 aboutjd.java

📁 用Java编写的天气预报软件
💻 JAVA
字号:
/*
 * AboutJD.java
 * Download by http://www.codefans.net
 * Created on 2007年9月4日, 上午9:51
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package weather;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

/**
 *
 * @author yuhui_bear
 */
class AboutJD extends JDialog {
    AboutPanel mp ;
    public AboutJD(JFrame jf , String title ,String label , String information) {
        super(jf,title,true);
        mp = new AboutPanel(label ,information ,null ,this);       
        showAbout();
    }
    public AboutJD(JFrame jf , String title ,String label , String information , Icon icon1){
        super(jf,title ,true);
        mp = new AboutPanel(label ,information ,icon1 ,this);
        showAbout();
    }    
    /** add new component to the main frame 
     *this frame has been set to BorderLayout , and SOUTH & Center occupied
     */
    public void showAbout(){
        this.setSize(340,130);
        this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        Toolkit.getDefaultToolkit().beep();
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        this.setLocation( (int)(screenSize.width / 3 + 30) ,(int)(screenSize.height / 3 +30));
        this.add(mp);
        this.setVisible(true);
    }
}

⌨️ 快捷键说明

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