Ao incluir, não consigo verificar se o campo está vazio, e dá o seguinte erro:
abr. 23, 2024 3:35:56 PM br.udf.ipilltda.UI.frmClientes btnIncluirCliActionPerformed
SEVERE: null
java.time.format.DateTimeParseException: Text ‘ / / ‘ could not be parsed at index 0
if(!ftfDtNascimentoCli.getText().matches("dd/MM/yyyy")) { JOptionPane.showMessageDialog(null, "O campo Data Nascimento do Cliente está vazio !!!!"); ftfDtNascimentoCli.requestFocus(); }
Montesuma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.