📄 sqqueren.java~7~
字号:
package carmanage;
import java.awt.*;
import javax.swing.*;
import java.awt.Rectangle;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.event.AncestorEvent;
import javax.swing.event.AncestorListener;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2008</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class SqQueren extends JFrame {
public SqQueren() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(null);
jLabel1.setBounds(new Rectangle(41, 41, 308, 125));
jLabel1.addAncestorListener(new SqQueren_jLabel1_ancestorAdapter(this));
jButton3.addActionListener(new SqQueren_jButton3_actionAdapter(this));
jButton3.setBounds(new Rectangle(278, 192, 95, 52));
jButton3.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jButton3.setText("返回");
jButton2.setBounds(new Rectangle(149, 192, 97, 52));
jButton2.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jButton2.setText("取消申请");
this.getContentPane().add(jButton1);
this.getContentPane().add(jButton3);
this.getContentPane().add(jLabel1);
this.getContentPane().add(jButton2);
jButton1.setBounds(new Rectangle(24, 193, 98, 52));
jButton1.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jButton1.setText("确认申请");
this.setSize(400,400);
this.setVisible(true);
setTitle("申请人确认");
}
JLabel jLabel1 = new JLabel();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
public void jButton3_actionPerformed(ActionEvent e) {
this.dispose();
}
public void jLabel1_ancestorAdded(AncestorEvent ancestorEvent) {
}
}
class SqQueren_jLabel1_ancestorAdapter implements AncestorListener {
private SqQueren adaptee;
SqQueren_jLabel1_ancestorAdapter(SqQueren adaptee) {
this.adaptee = adaptee;
}
public void ancestorAdded(AncestorEvent ancestorEvent) {
adaptee.jLabel1_ancestorAdded(ancestorEvent);
}
public void ancestorRemoved(AncestorEvent ancestorEvent) {
}
public void ancestorMoved(AncestorEvent ancestorEvent) {
}
}
class SqQueren_jButton3_actionAdapter implements ActionListener {
private SqQueren adaptee;
SqQueren_jButton3_actionAdapter(SqQueren adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton3_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -