lundi 27 avril 2015

print error while null value for SQL safety

how can I print "Error" while the JTextfield is empty save.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) {

                 String sn =jX1.getText();
                  if (sn==null){
                      System.out.println("Error");
                      System.out.println("T");
                  }

Thanks

Aucun commentaire:

Enregistrer un commentaire