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

📄 frame4.java~26~

📁 人事工资管理系统
💻 JAVA~26~
字号:
package mis;

import javax.swing.*;
import java.awt.*;
import com.borland.jbcl.layout.*;
import java.awt.event.*;

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

public class Frame4 extends JFrame {
  JButton jButton2 = new JButton();
  JButton jButton1 = new JButton();
  JLabel jLabel1 = new JLabel();  JPanel jPanel1 = new JPanel();  XYLayout xYLayout1 = new XYLayout();

  public Frame4() {
    try {
      jbInit();
    }
    catch(Exception e) {
      e.printStackTrace();
    }
  }
  private void jbInit() throws Exception {
    //this.getContentPane().layout(xYLayout1);
   //jButton
    //add to jPanel
    jButton2.setText("取消");
    jButton2.addActionListener(new Frame4_jButton2_actionAdapter(this));
    jButton2.setActionCommand("取消");
    jButton2.setFont(new java.awt.Font("Dialog", 0, 13));
    jButton1.setFont(new java.awt.Font("Dialog", 0, 13));
    jButton1.setActionCommand("确定 ");
    jButton1.setText("确定 ");
    jLabel1.setBackground(Color.gray);
    jLabel1.setFont(new java.awt.Font("Dialog", 0, 15));
    jLabel1.setForeground(Color.black);
    jLabel1.setBorder(null);
    jLabel1.setOpaque(false);
    jLabel1.setRequestFocusEnabled(true);
    jLabel1.setText("编辑员工信息");
    jPanel1.setBorder(BorderFactory.createEtchedBorder());    jPanel1.setLayout(xYLayout1);    this.getContentPane().add(jLabel1,   new XYConstraints(24, 6, 492, 23));    this.getContentPane().add(jPanel1,    new XYConstraints(6, 31, 539, 437));    this.getContentPane().add(jButton1, new XYConstraints(126, 500, 91, 27));    this.getContentPane().add(jButton2, new XYConstraints(318, 499, 91, 27));
    //jPanel settting
   // this.getContentPane().add(jPanel1, null);
    this.setVisible(true);
    this.setSize(550,550);
  }

  void jButton2_actionPerformed(ActionEvent e) {
    this.setVisible(false);
  }
}

class Frame4_jButton2_actionAdapter implements java.awt.event.ActionListener {
  Frame4 adaptee;

  Frame4_jButton2_actionAdapter(Frame4 adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jButton2_actionPerformed(e);
  }
}

⌨️ 快捷键说明

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