|
|
|
|
@ -64,13 +64,13 @@ public class RegisterFrame extends JFrame{
|
|
|
|
|
mainPanel.add(titleLabel, BorderLayout.NORTH);
|
|
|
|
|
|
|
|
|
|
// 表单面板
|
|
|
|
|
JPanel formPanel = new JPanel(new GridLayout(5, 2, 10, 10));
|
|
|
|
|
JPanel formPanel = new JPanel(new GridLayout(6, 2, 10, 10));
|
|
|
|
|
|
|
|
|
|
JLabel nameLabel = new JLabel("用户名:");
|
|
|
|
|
nameLabel.setFont(new Font("微软雅黑", Font.PLAIN, 14));
|
|
|
|
|
nameField = new JTextField();
|
|
|
|
|
|
|
|
|
|
JLabel emailLabel = new JLabel("邮箱:");
|
|
|
|
|
JLabel emailLabel = new JLabel("QQ邮箱:");
|
|
|
|
|
emailLabel.setFont(new Font("微软雅黑", Font.PLAIN, 14));
|
|
|
|
|
emailField = new JTextField();
|
|
|
|
|
|
|
|
|
|
@ -93,6 +93,9 @@ public class RegisterFrame extends JFrame{
|
|
|
|
|
confirmPasswordLabel.setFont(new Font("微软雅黑", Font.PLAIN, 14));
|
|
|
|
|
confirmPasswordField = new JPasswordField();
|
|
|
|
|
|
|
|
|
|
JLabel infoLabel = new JLabel("提示:密码需要包含大小写字母以及数字,6-10位。");
|
|
|
|
|
infoLabel.setFont(new Font("微软雅黑", Font.PLAIN, 14));
|
|
|
|
|
|
|
|
|
|
formPanel.add(nameLabel);
|
|
|
|
|
formPanel.add(nameField);
|
|
|
|
|
formPanel.add(emailLabel);
|
|
|
|
|
@ -104,7 +107,11 @@ public class RegisterFrame extends JFrame{
|
|
|
|
|
formPanel.add(confirmPasswordLabel);
|
|
|
|
|
formPanel.add(confirmPasswordField);
|
|
|
|
|
|
|
|
|
|
mainPanel.add(formPanel, BorderLayout.CENTER);
|
|
|
|
|
JPanel centerPanel = new JPanel(new BorderLayout());
|
|
|
|
|
centerPanel.add(formPanel, BorderLayout.CENTER);
|
|
|
|
|
centerPanel.add(infoLabel, BorderLayout.SOUTH);
|
|
|
|
|
|
|
|
|
|
mainPanel.add(centerPanel, BorderLayout.CENTER);
|
|
|
|
|
|
|
|
|
|
// 按钮面板
|
|
|
|
|
JPanel buttonPanel = new JPanel(new FlowLayout());
|
|
|
|
|
|