Skip to content
Snippets Groups Projects
Commit d3ea2f00 authored by JotaJota96's avatar JotaJota96
Browse files

Se agrego validacion fecha null en Modificar usuario

parent 8fa2d028
Branches
Tags
No related merge requests found
......@@ -459,6 +459,9 @@ public class frmModificarUsuario extends javax.swing.JDialog {
if (dcFecha.getDate() != null) {
java.util.Date utilDate = dcFecha.getDate();
fecha = new java.sql.Date(utilDate.getTime());
}else{
JOptionPane.showMessageDialog(null, "Debe seleccionar la fecha de nacimiento", "OK", JOptionPane.WARNING_MESSAGE);
return;
}
DtUsuario u = new DtUsuario(user.getNickname(), pass, txtNombre.getText(), txtApellido.getText(), user.getCorreo(), fecha, ruta, PROPERTIES);
Privacidad priv;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment