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

📄 aboutdialog.java

📁 本员工管理系统使公司员工能通过网络来查询信息、请假
💻 JAVA
字号:
package employeemanagersystem;

import java.awt.*;
import javax.swing.*;
import javax.swing.BorderFactory;
import java.awt.BorderLayout;
import java.awt.Rectangle;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class AboutDialog
    extends JDialog
{
  JPanel panel1 = new JPanel();
  JPanel jPanel1 = new JPanel();
  JLabel jLabel1 = new JLabel();
  ImageIcon icon=new ImageIcon();
  ImageIcon emailIcon=null;
  JLabel jLabel2 = new JLabel();
  JLabel jLabel3 = new JLabel();
  JLabel jLabel4 = new JLabel();
  JLabel jLabel5 = new JLabel();
  JLabel jLabel6 = new JLabel();
  JButton jButton1 = new JButton();
  public AboutDialog(Frame owner, String title, boolean modal)
  {
    super(owner, title, modal);
    try
    {
      setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      jbInit();
      pack();
    }
    catch (Exception exception)
    {
      exception.printStackTrace();
    }
  }

  public AboutDialog()
  {
    this(new Frame(), "AboutDialog", false);
  }

  private void jbInit()
      throws Exception
  {
    panel1.setLayout(null);
    icon=new ImageIcon(".//pictures//icon.gif");
    emailIcon=new  ImageIcon(".//pictures//emailIcon.gif");
    panel1.setBackground(SystemColor.control);
    panel1.setBorder(null);
    this.getContentPane().setBackground(UIManager.getColor("control"));
    jPanel1.setBackground(SystemColor.control);
    jPanel1.setBorder(BorderFactory.createEtchedBorder());
    jPanel1.setBounds(new Rectangle(6, 11, 320, 172));
    jPanel1.setLayout(null);
    jLabel1.setText("jLabel1");
    jLabel1.setBounds(new Rectangle(5, 19, 122, 110));
    jLabel2.setText("名称:企业员工管理系统");
    jLabel2.setBounds(new Rectangle(136, 24, 146, 27));
    jLabel3.setText("版本:1.0");
    jLabel3.setBounds(new Rectangle(141, 56, 139, 26));
    jLabel4.setText("版权:北大青鸟");
    jLabel4.setBounds(new Rectangle(141, 88, 140, 24));
    jLabel5.setText(":yangxueyun1986@126.com");
    jLabel5.setBounds(new Rectangle(165, 124, 152, 22));
    jLabel6.setText("jLabel6");
    jLabel6.setBounds(new Rectangle(123, 123, 47, 27));
    jButton1.setBounds(new Rectangle(107, 194, 78, 23));
    jButton1.setText("退出");
    jButton1.addActionListener(new AboutDialog_jButton1_actionAdapter(this));

    getContentPane().add(panel1);
    jLabel1.setIcon(icon);
    jLabel6.setIcon(emailIcon);
    panel1.add(jPanel1);
    panel1.add(jButton1);
    jPanel1.add(jLabel2);
    jPanel1.add(jLabel4);
    jPanel1.add(jLabel3);
    jPanel1.add(jLabel1);
    jPanel1.add(jLabel5);
    jPanel1.add(jLabel6);
  }

  public void jButton1_actionPerformed(ActionEvent e)
  {
    this.dispose();
  }
}

class AboutDialog_jButton1_actionAdapter
    implements ActionListener
{
  private AboutDialog adaptee;
  AboutDialog_jButton1_actionAdapter(AboutDialog adaptee)
  {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e)
  {
    adaptee.jButton1_actionPerformed(e);
  }
}

⌨️ 快捷键说明

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