?? register_customer.java
字號:
/*
* Register_Customer.java
*
* Created on 2007年12月6日, 下午10:07
*/
package happychat;
import java.awt.*;
import java.sql.*;
import java.util.regex.*;
import javax.swing.*;
/**
*
* @author 范方青
*/
public class Register_Customer extends javax.swing.JFrame {
/** Creates new form Register_Customer */
public Register_Customer() {
super("注冊[HappyChat]賬號");
initComponents();
this.buttonGroup1.add(this.jRadioButton1);
this.buttonGroup1.add(this.jRadioButton2);
jButton1.setMnemonic('O');
jButton2.setMnemonic('B');
jButton3.setMnemonic('L');
Dimension scrnsize;
Toolkit toolkit=Toolkit.getDefaultToolkit();
scrnsize = toolkit.getScreenSize();
setLocation(scrnsize.width/2-this.getWidth()/2,scrnsize.height/2-this.getHeight()/2);
Image img = toolkit.getImage(this.getClass().getResource("2.jpg").toString().substring(6));
this.setIconImage(img);
//jLabel7.setIcon(new javax.swing.ImageIcon(this.getClass().getResource("1.jpg").toString().substring(6)));
// System.out.println(this.getClass().getResource("1.jpg").toString().substring(6));
this.getContentPane().setBackground(new Color(52,130,203));
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" 生成的代碼 ">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jRadioButton1 = new javax.swing.JRadioButton();
jRadioButton2 = new javax.swing.JRadioButton();
jComboBox1 = new javax.swing.JComboBox();
jTextField4 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jPasswordField1 = new javax.swing.JPasswordField();
jPasswordField2 = new javax.swing.JPasswordField();
jLabel7 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
setFont(new java.awt.Font("Arial", 0, 12));
setResizable(false);
jLabel1.setText("\u7528 \u6237 \u540d\uff1a");
jLabel2.setText("\u5bc6 \u7801\uff1a");
jLabel3.setText("\u786e\u8ba4\u5bc6\u7801\uff1a");
jLabel4.setText("\u6027 \u522b\uff1a");
jLabel5.setText("\u5e74 \u9f84\uff1a");
jLabel6.setText("\u7535\u5b50\u90ae\u4ef6\uff1a");
jRadioButton1.setBackground(new java.awt.Color(52, 130, 203));
jRadioButton1.setSelected(true);
jRadioButton1.setText("\u7537");
jRadioButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jRadioButton1.setMargin(new java.awt.Insets(0, 0, 0, 0));
jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton1ActionPerformed(evt);
}
});
jRadioButton2.setBackground(new java.awt.Color(52, 130, 203));
jRadioButton2.setText("\u5973");
jRadioButton2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jRadioButton2.setMargin(new java.awt.Insets(0, 0, 0, 0));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "88" }));
jButton1.setBackground(java.awt.Color.orange);
jButton1.setText("\u786e\u8ba4(O)");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setBackground(java.awt.Color.orange);
jButton2.setText("\u8fd4\u56de(B)");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jButton3.setBackground(java.awt.Color.orange);
jButton3.setText("\u6e05\u7a7a(L)");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jPasswordField1.setFont(new java.awt.Font("宋體", 0, 12));
jPasswordField2.setFont(new java.awt.Font("宋體", 0, 12));
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jLabel1)
.add(jLabel2)
.add(jLabel3)
.add(jLabel4)
.add(jLabel5)
.add(jLabel6)
.add(jButton1))
.add(0, 0, 0)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(jRadioButton1)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jRadioButton2))
.add(layout.createSequentialGroup()
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -