📄 bumenshezhi.java~13~
字号:
package untitled2;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;import com.borland.dbswing.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class BuMenSheZhi extends JFrame { XYLayout xYLayout1 = new XYLayout(); JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); JLabel jLabel3 = new JLabel(); JLabel jLabel4 = new JLabel(); JLabel jLabel5 = new JLabel(); JLabel jLabel6 = new JLabel(); JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); JButton jButton3 = new JButton(); JdbTable jdbTable2 = new JdbTable(); JTextField jTextField1 = new JTextField(); JTextField jTextField2 = new JTextField(); JTextField jTextField4 = new JTextField(); JTextField jTextField5 = new JTextField(); JComboBox jComboBox1 = new JComboBox(); public BuMenSheZhi() { try { jbInit(); jComboBox1.addItem("图书馆"); jComboBox1.addItem("教务处"); jComboBox1.addItem("学生会"); jComboBox1.addItem("少先队"); jComboBox1.addItem("团委"); jComboBox1.addItem("学工处"); jComboBox1.addItem("后勤集团"); jComboBox1.addItem("其他"); } catch(Exception ex) { ex.printStackTrace(); } } void jbInit() throws Exception { this.setResizable(false); this.setSize(new Dimension(800,600)); this.setTitle("欢迎您进入部门设置界面"); this.getContentPane().setLayout(xYLayout1); jLabel1.setFont(new java.awt.Font("Dialog", 0, 14)); jLabel1.setText("请输入以下信息:"); jLabel2.setFont(new java.awt.Font("Dialog", 0, 13)); jLabel2.setText("部门编号"); jLabel3.setFont(new java.awt.Font("Dialog", 0, 13)); jLabel3.setText("部门电话"); jLabel4.setFont(new java.awt.Font("Dialog", 0, 13)); jLabel4.setText("部门名称"); jLabel5.setFont(new java.awt.Font("Dialog", 0, 13)); jLabel5.setText("部门办公室"); jLabel6.setFont(new java.awt.Font("Dialog", 0, 13)); jLabel6.setText("部门主任"); jButton1.setFont(new java.awt.Font("Dialog", 0, 13)); jButton1.setText("清空"); jButton2.setFont(new java.awt.Font("Dialog", 0, 13)); jButton2.setVerifyInputWhenFocusTarget(true); jButton2.setText("取消"); jButton2.addActionListener(new BuMenSheZhi_jButton2_actionAdapter(this)); jButton3.setFont(new java.awt.Font("Dialog", 0, 13)); jButton3.setText("确定"); jTextField1.setText(""); jTextField2.setText(""); jTextField5.setText(""); this.getContentPane().add(jLabel1, new XYConstraints(9, 6, -1, -1)); this.getContentPane().add(jLabel2, new XYConstraints(20, 45, -1, -1)); this.getContentPane().add(jLabel4, new XYConstraints(18, 73, 53, 32)); this.getContentPane().add(jTextField1, new XYConstraints(100, 49, 174, -1)); this.getContentPane().add(jTextField2, new XYConstraints(100, 112, 175, -1)); this.getContentPane().add(jLabel6, new XYConstraints(21, 112, -1, -1)); this.getContentPane().add(jComboBox1, new XYConstraints(100, 82, 135, -1)); this.getContentPane().add(jdbTable2, new XYConstraints(-1, 363, 802, 236)); this.getContentPane().add(jButton1, new XYConstraints(142, 296, -1, -1)); this.getContentPane().add(jTextField5, new XYConstraints(511, 42, 135, -1)); this.getContentPane().add(jLabel5, new XYConstraints(402, 80, 67, -1)); this.getContentPane().add(jLabel3, new XYConstraints(401, 45, 76, -1)); this.getContentPane().add(jTextField4, new XYConstraints(509, 76, 135, -1)); this.getContentPane().add(jButton3, new XYConstraints(376, 295, -1, -1)); this.getContentPane().add(jButton2, new XYConstraints(601, 295, -1, -1)); } void jButton2_actionPerformed(ActionEvent e) {this.dispose(); }}class BuMenSheZhi_jButton2_actionAdapter implements java.awt.event.ActionListener { BuMenSheZhi adaptee; BuMenSheZhi_jButton2_actionAdapter(BuMenSheZhi adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton2_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -