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

📄 selectyearbonusdialog.java

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

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

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

  private void jbInit()
      throws Exception
  {

    this.getContentPane().setLayout(null);

    highButton.setBounds(new Rectangle(252, 250, 98, 33));
    highButton.setText("高级查询");
    highButton.addActionListener(new
                                 SelectYearBonusDialog_highButton_actionAdapter(this));
    this.getContentPane().add(sybp, null);
    sybp.add(highButton);
    sybp.setBounds(new Rectangle(2, 4, 663, 309));
  }

  public void highButton_actionPerformed(ActionEvent e)
  {
    this.remove(sybp);
    AllEmployeeBonusPanel aebp=new  AllEmployeeBonusPanel();
    this.setContentPane(aebp);
    aebp.setBounds(new Rectangle(2, 4, 663, 319));
    aebp.setVisible(true);

  }
}

class SelectYearBonusDialog_highButton_actionAdapter
    implements ActionListener
{
  private SelectYearBonusDialog adaptee;
  SelectYearBonusDialog_highButton_actionAdapter(SelectYearBonusDialog adaptee)
  {
    this.adaptee = adaptee;
  }

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

⌨️ 快捷键说明

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