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

📄 xuigaikaochang.java

📁 中小学校园的教师
💻 JAVA
字号:
package untitled2;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class xuiGaiKaoChang extends JFrame {  JTextField jTextField1 = new JTextField();  JTextField jTextField2 = new JTextField();  JList jList1 = new JList();  JLabel jLabel1 = new JLabel();  JLabel jLabel2 = new JLabel();  JButton jButton1 = new JButton();  JTextField jTextField3 = new JTextField();  JTextField jTextField4 = new JTextField();  JLabel jLabel3 = new JLabel();  JLabel jLabel4 = new JLabel();  JButton jButton3 = new JButton();  JButton jButton4 = new JButton();  GridBagLayout gridBagLayout1 = new GridBagLayout();  public xuiGaiKaoChang() {    try {      jbInit();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  void jbInit() throws Exception {    this.getContentPane().setLayout(gridBagLayout1);    jLabel1.setFont(new java.awt.Font("Dialog", 0, 13));    jLabel1.setRequestFocusEnabled(true);    jLabel1.setText("请输入考试科目");    jLabel2.setFont(new java.awt.Font("Dialog", 0, 13));    jLabel2.setText("请输入考试时间");    jButton1.setFont(new java.awt.Font("Dialog", 1, 13));    jButton1.setText("查询");    jLabel3.setFont(new java.awt.Font("Dialog", 0, 13));    jLabel3.setText("请输入新的考试时间");    jLabel4.setFont(new java.awt.Font("Dialog", 0, 13));    jLabel4.setText("请输入新的考试地点");    jButton3.setFont(new java.awt.Font("Dialog", 1, 13));    jButton3.setText("修改");    jButton4.setFont(new java.awt.Font("Dialog", 1, 13));    jButton4.setText("取消");    this.setSize(new Dimension(400, 300));    this.setTitle("欢迎您进入修改考场界面");    jTextField1.setText("");    jTextField2.setText("");    jTextField3.setText("");    jTextField4.setText("");    this.getContentPane().add(jList1,  new GridBagConstraints(0, 2, 3, 1, 1.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(19, 0, 0, 0), 401, 109));    this.getContentPane().add(jTextField3,  new GridBagConstraints(1, 3, 1, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(16, 13, 0, 0), 96, 0));    this.getContentPane().add(jTextField1,  new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(15, 7, 0, 0), 100, 5));    this.getContentPane().add(jTextField2,  new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(13, 8, 0, 0), 98, 4));    this.getContentPane().add(jButton3,  new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(13, 47, 0, 46), 0, 0));    this.getContentPane().add(jButton4,  new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(15, 48, 9, 45), 0, 0));    this.getContentPane().add(jTextField4,  new GridBagConstraints(1, 4, 1, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(15, 15, 16, 0), 94, 0));    this.getContentPane().add(jLabel1,  new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(15, 22, 0, 14), 0, 0));    this.getContentPane().add(jLabel2,  new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(16, 26, 0, 10), 0, 0));    this.getContentPane().add(jLabel3,  new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(19, 9, 0, 0), 0, 0));    this.getContentPane().add(jLabel4,  new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(12, 10, 22, 0), 0, 0));    this.getContentPane().add(jButton1,  new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(10, 40, 0, 53), 0, -1));  }}

⌨️ 快捷键说明

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