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