java中JOptionPane弹出点确定无法关闭
这是部分代码:
while(i.next())
{
//JOptionPane.showMessageDialog(this, "注册成功,跳转至登录界面!");
this.setVisible(false);
new jm();
}
while(!i.next())
{
JOptionPane.showMessageDialog(this, "登录失败,账户或密码错误!");
}
stmt.close();
conn.close();
}
请教大神