📄 registerframe.java~39~
字号:
package librarysystem;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.UIManager;
import java.awt.Dimension;
import javax.swing.JLabel;
import java.awt.*;
import javax.swing.*;
import javax.net.*;
import java.net.URL;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import baseclass.User;
import databaseoperate.DatabaseOperate;
import databaseoperate.DatabaseQuery;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class RegisterFrame extends JFrame {
String[] nn = {"本科生", "研究生", "教授"};
String[] aa = {"材料学院", "电子学院", "自动化学院", "动力学院", "计算机学院", "机械学院", "经管学院",
"人文学院", "宇航学院", "法学院"};
String[] bb = {"男", "女"};
public RegisterFrame() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
URL url = this.getClass().getResource("lib.jpg");
jLabel12.setIcon(new ImageIcon(url));
getContentPane().setLayout(null);
this.getContentPane().setBackground(UIManager.getColor(
"inactiveCaptionText"));
setTitle("Counter");
setSize(new Dimension(1024, 768));
jLabel1.setBorder(BorderFactory.createLoweredBevelBorder());
jLabel1.setBounds(new Rectangle(46, 97, 924, 483));
jLabel7.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel7.setForeground(Color.blue);
jLabel7.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel7.setText(" 姓 名");
jLabel7.setBounds(new Rectangle(102, 321, 125, 32));
jLabel8.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel8.setForeground(Color.blue);
jLabel8.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel8.setText(" 性 别");
jLabel8.setBounds(new Rectangle(104, 366, 125, 32));
jLabel9.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel9.setForeground(Color.blue);
jLabel9.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel9.setText(" 院 系");
jLabel9.setBounds(new Rectangle(103, 408, 125, 33));
jLabel10.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel10.setForeground(Color.blue);
jLabel10.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel10.setText(" 身 份 证");
jLabel10.setBounds(new Rectangle(102, 450, 125, 34));
jComboBox1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jComboBox1.setBounds(new Rectangle(276, 276, 171, 32));
jPasswordField2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jPasswordField2.setBounds(new Rectangle(274, 224, 171, 35));
jPasswordField1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jPasswordField1.setBounds(new Rectangle(273, 175, 174, 36));
jLabel6.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel6.setForeground(Color.blue);
jLabel6.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel6.setText(" 会员类型");
jLabel6.setBounds(new Rectangle(101, 274, 126, 34));
jLabel5.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel5.setForeground(Color.blue);
jLabel5.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel5.setText(" 密码确定");
jLabel5.setBounds(new Rectangle(102, 223, 127, 36));
jLabel4.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel4.setForeground(Color.blue);
jLabel4.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel4.setText(" 密 码");
jLabel4.setBounds(new Rectangle(103, 175, 126, 36));
jTextField1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jTextField1.setBounds(new Rectangle(273, 129, 174, 34));
jLabel3.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel3.setForeground(Color.blue);
jLabel3.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel3.setText(" 会 员 号");
jLabel3.setBounds(new Rectangle(102, 127, 127, 36));
jTextField2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jTextField2.setText("");
jTextField2.setBounds(new Rectangle(277, 322, 170, 30));
jComboBox2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jComboBox2.setBounds(new Rectangle(275, 367, 171, 31));
jComboBox3.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jComboBox3.setBounds(new Rectangle(276, 411, 169, 31));
jTextField3.setBounds(new Rectangle(273, 454, 174, 29));
jLabel11.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel11.setForeground(Color.blue);
jLabel11.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel11.setText(" 住 址");
jLabel11.setBounds(new Rectangle(104, 498, 125, 34));
jTextField4.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jTextField4.setBounds(new Rectangle(276, 501, 171, 32));
jLabel12.setBorder(BorderFactory.createLoweredBevelBorder());
jLabel12.setBounds(new Rectangle(491, 131, 437, 315));
jLabel13.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel13.setForeground(Color.blue);
jLabel13.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel13.setText(" 联系电话");
jLabel13.setBounds(new Rectangle(491, 457, 126, 29));
jTextField5.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jTextField5.setBounds(new Rectangle(660, 459, 172, 29));
jLabel14.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel14.setForeground(Color.blue);
jLabel14.setBorder(BorderFactory.createRaisedBevelBorder());
jLabel14.setText(" E_MAIL");
jLabel14.setBounds(new Rectangle(490, 502, 125, 29));
jTextField6.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jTextField6.setBounds(new Rectangle(660, 502, 173, 28));
jButton1.setBounds(new Rectangle(266, 604, 138, 43));
jButton1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jButton1.setForeground(Color.red);
jButton1.setBorder(BorderFactory.createRaisedBevelBorder());
jButton1.setText("重 写");
jButton1.addActionListener(new RegisterFrame_jButton1_actionAdapter(this));
jButton2.setBounds(new Rectangle(500, 605, 151, 44));
jButton2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jButton2.setForeground(Color.red);
jButton2.setBorder(BorderFactory.createRaisedBevelBorder());
jButton2.setText("提 交");
jButton2.addActionListener(new RegisterFrame_jButton2_actionAdapter(this));
this.getContentPane().add(jLabel2);
this.getContentPane().add(jLabel3);
this.getContentPane().add(jTextField1);
this.getContentPane().add(jLabel4);
this.getContentPane().add(jLabel5);
this.getContentPane().add(jPasswordField1);
this.getContentPane().add(jPasswordField2);
this.getContentPane().add(jComboBox1);
this.getContentPane().add(jLabel6);
this.getContentPane().add(jLabel7);
this.getContentPane().add(jLabel8);
this.getContentPane().add(jLabel9);
this.getContentPane().add(jLabel10);
this.getContentPane().add(jLabel1);
this.getContentPane().add(jTextField2);
this.getContentPane().add(jComboBox2);
this.getContentPane().add(jComboBox3);
this.getContentPane().add(jTextField3);
this.getContentPane().add(jLabel11);
this.getContentPane().add(jTextField4);
this.getContentPane().add(jLabel12);
this.getContentPane().add(jLabel13);
this.getContentPane().add(jTextField5);
this.getContentPane().add(jLabel14);
this.getContentPane().add(jTextField6);
this.getContentPane().add(jButton1);
this.getContentPane().add(jButton2);
jLabel2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jLabel2.setForeground(UIManager.getColor(
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -