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

📄 tianjiakaoshi.java~7~

📁 中小学校园的教师
💻 JAVA~7~
字号:
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 tianJiaKaoShi extends JFrame {  JTextField jTextField1 = new JTextField();  JTextField jTextField2 = new JTextField();  JButton jButton1 = new JButton();  JButton jButton2 = new JButton();  JTextArea jTextArea1 = new JTextArea();  JLabel jLabel1 = new JLabel();  JLabel jLabel2 = new JLabel();  GridBagLayout gridBagLayout1 = new GridBagLayout();  public tianJiaKaoShi() {    try {      jbInit();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  void jbInit() throws Exception {    jTextField1.setSelectionStart(11);    jTextField1.setText("");    this.getContentPane().setLayout(gridBagLayout1);    this.setResizable(true);    this.setSize(new Dimension(400, 300));    this.setTitle("欢迎进入添加考试界面");    jButton1.setFont(new java.awt.Font("Dialog", 0, 13));    jButton1.setText("确定");    jButton2.setFont(new java.awt.Font("Dialog", 0, 13));    jButton2.setText("取消");    jLabel1.setFont(new java.awt.Font("Dialog", 1, 13));    jLabel1.setText("请输入考试科目");    jLabel2.setFont(new java.awt.Font("Dialog", 1, 13));    jLabel2.setText("请输入考试时间");    jTextArea1.setText("");    jTextField2.setText("");    this.getContentPane().add(jTextArea1,  new GridBagConstraints(0, 3, 3, 1, 1.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(25, 0, 0, 0), 400, 80));    this.getContentPane().add(jLabel1,  new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(44, 70, 0, 0), 0, 0));    this.getContentPane().add(jTextField2,  new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(33, 44, 0, 83), 101, 0));    this.getContentPane().add(jLabel2,  new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(35, 74, 0, 0), 0, 0));    this.getContentPane().add(jTextField1,  new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(44, 43, 0, 84), 101, 0));    this.getContentPane().add(jButton1,  new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(29, 32, 0, 0), 0, 0));    this.getContentPane().add(jButton2,  new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(27, 44, 0, 32), 4, 3));  }}

⌨️ 快捷键说明

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