?? registerframe.java~43~
字號:
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 = {"材料學院", "電子學院", "自動化學院", "動力學院", "計算機學院", "機械學院", "經(jīng)管學院",
"人文學院", "宇航學院", "法學院"};
String[] bb = {"男", "女"};
public RegisterFrame() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
URL url = this.getClass().getResource("lib.jpg");
ImageIcon icon = new ImageIcon(url);
//System.out.println("icon:"+icon);
jLabel12.setIcon(icon);
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(" 聯(lián)系電話");
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));
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -