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

📄 xinshengruxue.java

📁 中小学校园的教师
💻 JAVA
字号:
package untitled2;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;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 xinShengRuXue extends JFrame {  JLabel jLabel1 = new JLabel();  JButton jButton1 = new JButton();  JButton jButton2 = new JButton();  JButton jButton3 = new JButton();  GridBagLayout gridBagLayout1 = new GridBagLayout();  public xinShengRuXue() {    try {      jbInit();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  void jbInit() throws Exception {    jLabel1.setFont(new java.awt.Font("Dialog", 0, 13));    jLabel1.setText("请输入相关新生信息:");    this.setSize(new Dimension(450, 300));    this.setTitle("欢迎您进入新生入学管理界面");    this.getContentPane().setLayout(gridBagLayout1);    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("取消");    jButton3.addActionListener(new xinShengRuXue_jButton3_actionAdapter(this));    this.getContentPane().add(jLabel1,  new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(16, 14, 0, 18), 73, 0));    this.getContentPane().add(jButton1,  new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(215, 52, 18, 102), 0, 0));    this.getContentPane().add(jButton2,  new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(216, 43, 18, 0), 0, 0));    this.getContentPane().add(jButton3,  new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(218, 70, 18, 0), 0, 0));  }  void jButton3_actionPerformed(ActionEvent e) {  System.exit(0);  }}class xinShengRuXue_jButton3_actionAdapter implements java.awt.event.ActionListener {  xinShengRuXue adaptee;  xinShengRuXue_jButton3_actionAdapter(xinShengRuXue adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.jButton3_actionPerformed(e);  }}

⌨️ 快捷键说明

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