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

📄 about.java

📁 java+SQLServer2005编写的学生学籍管理系统
💻 JAVA
字号:
/*
 * about.java
 *
 * Created on 2007年11月5日, 下午2:35
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package studentsystem;

/**
 *
 * @author asus
 */
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2006</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class about extends JDialog {
    JPanel panel1 = new JPanel();
    ImageIcon icon=new ImageIcon("xuan.jpg");//设置背景图片
    JLabel jLabel1 = new JLabel(icon);
    JButton sure = new JButton();

    public about(Frame frame, String title, boolean modal) {
        super(frame, title, true);
        try {
            jbInit();
            pack();
        }
        catch(Exception ex) {
            ex.printStackTrace();
        }
    }

    public about() {
        this(null, "", true);
    }
    private void jbInit() throws Exception {
        jLabel1.setText("");
        jLabel1.setBounds(new Rectangle(5, 5, 392, 250));
        panel1.setBounds(new Rectangle(0, 299, 1, 1));
        panel1.setLayout(null);
        jLabel1.setText("该程序易于学会!多用两次就掌握拉");//帮助信息内容
        jLabel1.setBounds(new Rectangle(-43, 0, 414, 245));
        sure.setBounds(new Rectangle(109, 243, 79, 29));
        sure.setFont(new java.awt.Font("Dialog", 0, 15));
        sure.setText("确   定");
        jLabel1.setToolTipText("T小组制作!");
        sure.addActionListener(new about_sure_actionAdapter(this));
        this.setTitle("帮助信息");
        this.getContentPane().add(panel1, null);
        this.getContentPane().add(sure, null);
        this.getContentPane().add(jLabel1, null);
        this.setBounds(200,200,330,310);
        this.getContentPane().setLayout(null);
        this.setVisible(true);
    }

    void sure_actionPerformed(ActionEvent e) {
        this.dispose();
    }
}

class about_sure_actionAdapter implements java.awt.event.ActionListener {
    about adaptee;
    about_sure_actionAdapter(about adaptee) {
        this.adaptee = adaptee;
    }
    public void actionPerformed(ActionEvent e) {
        adaptee.sure_actionPerformed(e);
    }
}

⌨️ 快捷键说明

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