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

📄 selectmonthsalarydialog.java

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

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

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

  private void jbInit()
      throws Exception
  {
    selfSalaryPanel.setLayout(null);
    this.getContentPane().setLayout(null);
    highSelectButton.setBounds(new Rectangle(233, 279, 131, 35));
    highSelectButton.setText("高级查询");
    highSelectButton.addActionListener(new
        SelectMonthSalaryDialog_highSelectButton_actionAdapter(this));
    selfSalaryPanel.setBorder(null);
    this.getContentPane().add(selfSalaryPanel, null);
    selfSalaryPanel.add(highSelectButton);

    selfSalaryPanel.setBounds(new Rectangle(10, 10, 672, 360));
  }

  public void highSelectButton_actionPerformed(ActionEvent e)
  {
    this.remove(selfSalaryPanel);
    AllEmployeeSalaryPanel aesp=new AllEmployeeSalaryPanel();
    this.setContentPane(aesp);
    aesp.setBounds(new Rectangle(10, 10, 672, 352));
    aesp.setVisible(true);

  }
}

class SelectMonthSalaryDialog_highSelectButton_actionAdapter
    implements ActionListener
{
  private SelectMonthSalaryDialog adaptee;
  SelectMonthSalaryDialog_highSelectButton_actionAdapter(
      SelectMonthSalaryDialog adaptee)
  {
    this.adaptee = adaptee;
  }

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

⌨️ 快捷键说明

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