怎样更改为只有在用户名或密码输入错误时才出现“输入信息有误。请重新输入”???
private JPanel createContentPane() {
JPanel p = new JPanel(new BorderLayout());
p.add(createNamePwdPane(), BorderLayout.NORTH);
p.add(new JLabel("输入信息有误,请重新输入",JLabel.CENTER), BorderLayout.CENTER);
p.add(createJButtonPane(), BorderLayout.SOUTH);
return p;
}