Validate Mobile Number in Java Using Netbeans with Source Code

Validate Mobile Number in Java Using Netbeans with Source Code




*** Source Code ***



private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)
    {                                         
           String contact = jTextField1.getText();
              if(contact.length()==10)
                 {
              JOptionPane.showMessageDialog(null,"submitedd");
                }
            else
               {
             JOptionPane.showMessageDialog(null,"Please check your phone number and try again");
              }
    } 

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