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

📄 basicinfo.java~4~

📁 这是一个用JAVA编写的学生管理系统
💻 JAVA~4~
字号:
package studentms;import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.jbcl.layout.*;import javax.swing.border.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class basicInfo extends JFrame{   XYLayout xYLayout1 = new XYLayout();  JPanel jPanelInfo = new JPanel();  JLabel jLabel1 = new JLabel();  XYLayout xYLayout2 = new XYLayout();  JLabel jLabel2 = new JLabel();  JLabel jLabel3 = new JLabel();  JLabel jLabel4 = new JLabel();  JLabel jLabel5 = new JLabel();  JLabel jLabel6 = new JLabel();  JLabel jLabel7 = new JLabel();  Border border1;  JTextField jTextField2 = new JTextField();  Border border2;  JTextField jTextField1 = new JTextField();  Border border3;  JTextField jTextField3 = new JTextField();  Border border4;  JTextField jTextField4 = new JTextField();  JTextField jTextField5 = new JTextField();  JTextField jTextField6 = new JTextField();  JTextField jTextField7 = new JTextField();  Border border5;  JButton jButton1 = new JButton();  public basicInfo() {    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  private void jbInit() throws Exception {    border1 = BorderFactory.createLineBorder(Color.black,2);    border2 = BorderFactory.createLineBorder(Color.black,1);    border3 = BorderFactory.createLineBorder(Color.black,1);    border4 = BorderFactory.createLineBorder(Color.black,1);    border5 = BorderFactory.createLineBorder(Color.black,1);    this.getContentPane().setLayout(xYLayout1);    jLabel1.setFont(new java.awt.Font("Dialog", 0, 12));    jLabel1.setText("姓名:");    jPanelInfo.setLayout(xYLayout2);    jPanelInfo.setFont(new java.awt.Font("Dialog", 0, 12));    jLabel2.setFont(new java.awt.Font("Dialog", 0, 12));    jLabel2.setText("性别:");    jLabel3.setFont(new java.awt.Font("Dialog", 0, 12));    jLabel3.setText("学号:");    jLabel4.setFont(new java.awt.Font("Dialog", 0, 12));    jLabel4.setText("民族:");    jLabel5.setFont(new java.awt.Font("Dialog", 0, 12));    jLabel5.setText("所在班级:");    jLabel6.setFont(new java.awt.Font("Dialog", 0, 12));    jLabel6.setText("出生日期:");    jLabel7.setFont(new java.awt.Font("Dialog", 0, 12));    jLabel7.setText("籍贯:");    jTextField2.setBorder(border2);    jTextField1.setBorder(border3);    jTextField3.setBorder(border4);    jTextField4.setBorder(border5);    jTextField5.setBorder(border5);    jTextField6.setBorder(border5);    jTextField7.setBorder(border5);    jButton1.setText("jButton1");    jButton1.addActionListener(new basicInfo_jButton1_actionAdapter(this));    jButton1.addActionListener(new basicInfo_jButton1_actionAdapter(this));    jPanelInfo.add(jLabel3, new XYConstraints(29, 15, 38, 19));    jPanelInfo.add(jLabel2, new XYConstraints(30, 97, 45, 17));    jPanelInfo.add(jLabel7, new XYConstraints(31, 132, 44, 19));    jPanelInfo.add(jLabel6, new XYConstraints(170, 95, 69, 20));    jPanelInfo.add(jLabel5,  new XYConstraints(170, 59, 61, 17));    jPanelInfo.add(jLabel1, new XYConstraints(30, 56, -1, -1));    jPanelInfo.add(jTextField1, new XYConstraints(73, 15, 72, 20));    jPanelInfo.add(jTextField6,   new XYConstraints(235, 97, 72, 20));    jPanelInfo.add(jTextField2, new XYConstraints(234, 13, 72, 20));    jPanelInfo.add(jLabel4,  new XYConstraints(185, 15, 39, 19));    jPanelInfo.add(jTextField4,  new XYConstraints(235, 54, 72, 20));    jPanelInfo.add(jTextField3, new XYConstraints(73, 54, 72, 20));    jPanelInfo.add(jTextField5,  new XYConstraints(73, 97, 72, 20));    jPanelInfo.add(jTextField7,   new XYConstraints(73, 136, 235, 20));    jPanelInfo.add(jButton1, new XYConstraints(111, 179, 106, 15));    this.getContentPane().add(jPanelInfo,   new XYConstraints(25, 83, 354, 213));  }  void jButton1_actionPerformed(ActionEvent e) {  }}class basicInfo_jButton1_actionAdapter implements java.awt.event.ActionListener {  basicInfo adaptee;  basicInfo_jButton1_actionAdapter(basicInfo adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.jButton1_actionPerformed(e);  }}

⌨️ 快捷键说明

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