Password
if (password.equals("agent"))
{
startAgent(); frame.setVisible(false); break;
}
else
{
JOptionPane.showMessageDialog(null, "Incorrect Password.", "Error", JOptionPane.WARNING_MESSAGE); break;
}
I have a simple password validation code here, and I want to have the password shown as **** - how can I do that please?

