shengjiguanli.java

来自「中小学校园的教师」· Java 代码 · 共 57 行

JAVA
57
字号
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 shengJiGuanLi extends JFrame {  JTextField jTextField1 = new JTextField();  JLabel jLabel1 = new JLabel();  JList jList1 = new JList();  JLabel jLabel2 = new JLabel();  JButton jButton1 = new JButton();  GridBagLayout gridBagLayout1 = new GridBagLayout();  public shengJiGuanLi() {    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.setText("请输入升级年级");    this.setLocale(java.util.Locale.getDefault());    this.setSize(new Dimension(400, 300));    this.setTitle("欢迎您进入学生升级界面");    jLabel2.setFont(new java.awt.Font("Dialog", 0, 13));    jLabel2.setRequestFocusEnabled(true);    jLabel2.setText("基本信息");    jButton1.setText("确定升级");    jTextField1.setText("");    this.getContentPane().add(jList1,  new GridBagConstraints(0, 2, 2, 1, 1.0, 1.0            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 401, 126));    this.getContentPane().add(jLabel2,  new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(34, 7, 0, 67), 0, 0));    this.getContentPane().add(jLabel1,  new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(34, 35, 0, 0), 0, 0));    this.getContentPane().add(jTextField1,  new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(34, 28, 0, 70), 171, 0));    this.getContentPane().add(jButton1,  new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(25, 175, 12, 21), 0, 0));  }}

⌨️ 快捷键说明

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