if( jTextField1.getText() == null || jTextField1.getText().trim().length() == 0 ||jTextField1.getText().trim().length() >20 ){
JOptionPane.showMessageDialog( null, "Name Field cannot be empty or more than 20 Characters" );
}
if ( jTextField2.getText() == null || jTextField2.getText().trim().length() == 0 || jTextField2.getText().trim().length() !=9 ){
JOptionPane.showMessageDialog( null, "Passport Field cannot be empty or not equal to 9 Characters" );
}