最终版1.2 增加提示词

pull/6/head
陈映江 5 months ago committed by Gitea
parent 5b9558c428
commit 2b2ad2ef30

@ -65,7 +65,7 @@ public class ChangeCodeFrame extends JFrame {
//表单面板
JPanel formPanel = new JPanel(new GridLayout(5, 2, 10, 10));
JLabel emailLabel = new JLabel("邮箱:");
JLabel emailLabel = new JLabel("QQ邮箱:");
emailLabel.setFont(new Font("微软雅黑", Font.PLAIN, 14));
emailField = new JTextField();
@ -80,7 +80,7 @@ public class ChangeCodeFrame extends JFrame {
codePanel.add(codeField, BorderLayout.CENTER);
codePanel.add(sendCodeButton, BorderLayout.EAST);
JLabel passwordLabel = new JLabel("新密码:");
JLabel passwordLabel = new JLabel("新密码(大小写字母+数字):");
passwordLabel.setFont(new Font("微软雅黑", Font.PLAIN, 14));
passwordField = new JPasswordField();

@ -46,7 +46,7 @@ public class ChangePasswordFrame extends JFrame {
mainPanel.add(titleLabel, BorderLayout.NORTH);
//表单
JPanel infoPanel = new JPanel(new GridLayout(4, 2, 10, 10));
JPanel infoPanel = new JPanel(new GridLayout(3, 2, 10, 10));
JLabel oldPasswordLabel = new JLabel("请输入旧密码:");
oldPasswordLabel.setFont(new Font("微软雅黑", Font.PLAIN, 14));
oldPasswordField = new JPasswordField();
@ -62,7 +62,12 @@ public class ChangePasswordFrame extends JFrame {
confirmPasswordField = new JPasswordField();
infoPanel.add(confirmPasswordLabel);
infoPanel.add(confirmPasswordField);
mainPanel.add(infoPanel, BorderLayout.CENTER);
JLabel infoLabel = new JLabel("密码需要包含大小写字母以及数字6-10位。");
infoLabel.setFont(new Font("微软雅黑", Font.PLAIN, 14));
JPanel centerPanel = new JPanel(new BorderLayout());
centerPanel.add(infoPanel, BorderLayout.CENTER);
centerPanel.add(infoLabel, BorderLayout.SOUTH);
mainPanel.add(centerPanel, BorderLayout.CENTER);
//按钮
JPanel buttonPanel = new JPanel(new FlowLayout());

@ -37,7 +37,7 @@ public class LoginFrame extends JFrame{
// 表单面板
JPanel formPanel = new JPanel(new GridLayout(3, 2, 10, 10));
JLabel emailLabel = new JLabel("邮箱:");
JLabel emailLabel = new JLabel("QQ邮箱:");
emailLabel.setFont(new Font("微软雅黑", Font.PLAIN, 14));
emailField = new JTextField();

@ -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());

Loading…
Cancel
Save