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

📄 normalhelpdialog.java

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

import java.awt.*;
import javax.swing.*;
import java.awt.Rectangle;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
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 NormalHelpDialog
    extends JDialog
{
  public NormalHelpDialog(Frame owner, String title, boolean modal)
  {
    super(owner, title, modal);
    try
    {
      setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      jbInit();
      pack();
    }
    catch (Exception exception)
    {
      exception.printStackTrace();
    }
  }

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

  private void jbInit()
      throws Exception
  {
    this.getContentPane().setLayout(null);
    jLabel1.setText(li.getLogName()+",您是本系统普通用户,您可以利用此系统");
    jLabel1.setBounds(new Rectangle(20, 101, 288, 13));
    jLabel3.setText("也可以用此系统申请三天以内的假期");
    jLabel3.setBounds(new Rectangle(24, 155, 156, 15));
    jPanel1.setBorder(BorderFactory.createEtchedBorder());
    jPanel1.setBounds(new Rectangle(5, 9, 297, 221));
    jPanel1.setLayout(null);
    jLabel5.setFont(new java.awt.Font("宋体", Font.BOLD, 16));
    jLabel5.setText("帮助提示");
    jLabel5.setBounds(new Rectangle(161, 29, 104, 40));
    jButton1.setBounds(new Rectangle(114, 184, 76, 30));
    jButton1.setText("关闭");
    jButton1.addActionListener(new NormalHelpDialog_jButton1_actionAdapter(this));
    this.getContentPane().add(jPanel1);
    jLabel2.setBounds(new Rectangle(23, 125, 252, 15));
    jLabel4.setIcon(aboutIcon);
    jLabel4.setBounds(new Rectangle(25, 12, 116, 70));
    jPanel1.add(jLabel4);
    jPanel1.add(jLabel5);
    jPanel1.add(jLabel3);
    jPanel1.add(jLabel2);
    jPanel1.add(jButton1);
    jPanel1.add(jLabel1);
    jLabel2.setText("查看您在华艺服饰工作以来的工资及奖金情况,");
  }
  LoginInformation li=new LoginInformation();
  ImageIcon aboutIcon=new ImageIcon(".//pictures//icon.gif");
  JLabel jLabel1 = new JLabel();
  JLabel jLabel2 = new JLabel();
  JLabel jLabel3 = new JLabel();
  JPanel jPanel1 = new JPanel();
  JLabel jLabel4 = new JLabel();
  JLabel jLabel5 = new JLabel();
  JButton jButton1 = new JButton();
  public void jButton1_actionPerformed(ActionEvent e)
  {
    this.dispose();
  }
}

class NormalHelpDialog_jButton1_actionAdapter
    implements ActionListener
{
  private NormalHelpDialog adaptee;
  NormalHelpDialog_jButton1_actionAdapter(NormalHelpDialog adaptee)
  {
    this.adaptee = adaptee;
  }

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

⌨️ 快捷键说明

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