📄 cw.java
字号:
package tdglxt;
import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Rectangle;
import java.awt.Font;
import javax.swing.BorderFactory;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class cw
extends JDialog {
JPanel panel1 = new JPanel();
JLabel jLabel1 = new JLabel();
JButton jButton1 = new JButton();
public cw(Frame owner, String title, boolean modal) {
super(owner, title, modal);
try {
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
jbInit();
pack();
}
catch (Exception exception) {
exception.printStackTrace();
}
}
public cw() {
this(new Frame(), "cw", false);
}
private void jbInit() throws Exception {
panel1.setLayout(null);
jLabel1.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jLabel1.setForeground(Color.yellow);
jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
jLabel1.setText("请先点选清空条件按钮,再进行二次查询!");
jLabel1.setBounds(new Rectangle(0, 9, 297, 32));
jButton1.setBounds(new Rectangle(99, 46, 89, 24));
jButton1.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jButton1.setBorder(BorderFactory.createRaisedBevelBorder());
jButton1.setActionCommand("");
jButton1.setText("确定");
jButton1.addActionListener(new cw_jButton1_actionAdapter(this));
panel1.setBackground(SystemColor.activeCaption);
getContentPane().add(panel1);
panel1.add(jLabel1);
panel1.add(jButton1);
}
public void jButton1_actionPerformed(ActionEvent e) {
this.dispose();
}
}
class cw_jButton1_actionAdapter
implements ActionListener {
private cw adaptee;
cw_jButton1_actionAdapter(cw adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -