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

Popular posts from this blog

How to make Splash Screen in Java using Netbeans with Source Code

How to set Date & Time in Java Jframe Using Netbeans with Source Code

Validate Mobile Number in Java Using Netbeans with Source Code