java中JOptionPane弹出点确定无法关闭
这是部分代码:
while(i.next())
{
//JOptionPane.showMessageDialog(this, "注册成功,跳转至登录界面!");
this.setVisible(false);
new jm();
}
while(!i.next())
{
JOptionPane.showMessageDialog(this, "登录失败,账户或密码错误!");
}
stmt.close();
conn.close();
}
请教大神
https://zhidao.baidu.com/question/1946099165458280468.html
实际上已经关闭了,只不过你没有设置重新输入正确的密码代码,所以永远都是错误的信息