ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import com.goudan.conn.User;
import com.goudan.conn.UserType;
import com.goudan.thread.RecevieClientThread;
import com.goudan.thread.SendClientThread;
import com.qq.model.ClientMessageDual;
public class QqReg extends JFrame {
public static Socket s;
public static ObjectInputStream ois;
public static ObjectOutputStream oos;
private JTextField textField_1;
private JComboBox comboBox_1;
private JComboBox comboBox;
private JPasswordField passwordField_1;
private JPasswordField passwordField;
private JTextField textField;
protected String num;
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
QqReg qr=new QqReg();
}
public QqReg() {
super();
getContentPane().setBackground(Color.ORANGE);
getContentPane().setLayout(null);
final JLabel nichengLabel = new JLabel();
nichengLabel.setFont(new Font("", Font.PLAIN, 14));
nichengLabel.setText("昵称");
nichengLabel.setBounds(44, 37, 67, 22);
getContentPane().add(nichengLabel);
textField = new JTextField();
textField.setBounds(157, 30, 162, 29);
getContentPane().add(textField);
final JLabel label = new JLabel();
label.setFont(new Font("", Font.PLAIN, 14));
label.setText("密码");
label.setBounds(44, 84, 67, 22);
getContentPane().add(label);
passwordField = new JPasswordField();
passwordField.setBounds(157, 82, 162, 29);
getContentPane().add(passwordField);
passwordField_1 = new JPasswordField();
passwordField_1.setBounds(157, 137, 162, 29);
getContentPane().add(passwordField_1);
final JLabel label_1 = new JLabel();
label_1.setFont(new Font("", Font.PLAIN, 14));
label_1.setText("确认密码");
label_1.setBounds(44, 140, 67, 22);
getContentPane().add(label_1);
final JLabel label_2 = new JLabel();
label_2.setFont(new Font("", Font.PLAIN, 14));
label_2.setText("性别");
label_2.setBounds(44, 197, 57, 22);
getContentPane().add(label_2);
String[] words={"","男","女"};
comboBox = new JComboBox(
words);
comboBox.setBounds(116, 192, 57, 27);
getContentPane().add(comboBox);
final JLabel label_3 = new JLabel();
label_3.setFont(new Font("", Font.PLAIN, 14));
label_3.setText("婚否");
label_3.setBounds(199, 197, 57, 22);
getContentPane().add(label_3);
String[] wo