Hide and Show Password in Java using Netbeans with Source Code
Hide and Show Password in Java using Netbeans with Source Code
private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt)
{
if(jCheckBox1.isSelected())
{
jPasswordField1.setEchoChar((char)0);
}
else
{
jPasswordField1.setEchoChar('*');
}
}
Comments
Post a Comment