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

📄 chengjigenggai.java~7~

📁 中小学校园的教师
💻 JAVA~7~
字号:
package untitled2;import javax.swing.*;import java.awt.*;import com.borland.dbswing.*;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 chengJiGengGai extends JFrame {  JTextField jTextField1 = new JTextField();  JLabel jLabel1 = new JLabel();  JLabel jLabel2 = new JLabel();  JTextField jTextField2 = new JTextField();  JLabel jLabel3 = new JLabel();  JTextField jTextField3 = new JTextField();  JButton jButton1 = new JButton();  JButton jButton2 = new JButton();  JButton jButton3 = new JButton();  GridBagLayout gridBagLayout1 = new GridBagLayout();  public chengJiGengGai() {    try {      jbInit();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  void jbInit() throws Exception {    this.setSize(new Dimension(400, 300));    this.setTitle("欢迎您进入成绩更改界面");    this.getContentPane().setLayout(gridBagLayout1);    jLabel1.setFont(new java.awt.Font("Dialog", 1, 13));    jLabel1.setText("请输入要修改成绩学生的学号:");    jLabel2.setFont(new java.awt.Font("Dialog", 1, 13));    jLabel2.setText("请输入更改的科目名称:");    jLabel3.setFont(new java.awt.Font("Dialog", 1, 13));    jLabel3.setText("请输入更改的成绩:");    jTextField3.setText("");    jTextField2.setText("");    jTextField1.setText("");    jButton1.setFont(new java.awt.Font("Dialog", 0, 13));    jButton1.setText("确定");    jButton2.setFont(new java.awt.Font("Dialog", 0, 13));    jButton2.setText("清空");    jButton3.setFont(new java.awt.Font("Dialog", 0, 13));    jButton3.setText("取消");    this.getContentPane().add(jTextField2,  new GridBagConstraints(2, 1, 1, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(16, 0, 0, 55), 118, 0));    this.getContentPane().add(jTextField3,  new GridBagConstraints(2, 2, 1, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(15, 0, 0, 55), 118, 0));    this.getContentPane().add(jTextField1,  new GridBagConstraints(2, 0, 1, 1, 1.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(84, 0, 0, 55), 118, 0));    this.getContentPane().add(jLabel1,  new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(84, 11, 0, 19), 9, 0));    this.getContentPane().add(jLabel3,  new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(15, 11, 0, 0), 15, 0));    this.getContentPane().add(jLabel2,  new GridBagConstraints(0, 1, 2, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(17, 11, 0, 32), 37, 0));    this.getContentPane().add(jButton3,  new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(29, 43, 60, 74), 0, 0));    this.getContentPane().add(jButton2,  new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(29, 16, 60, 0), 0, 0));    this.getContentPane().add(jButton1,  new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(30, 39, 60, 45), 0, 0));  }}

⌨️ 快捷键说明

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