Skip to content
Snippets Groups Projects
Commit ceda195c authored by Facundo's avatar Facundo
Browse files

validado duracion de video

parent 136848b7
No related branches found
No related tags found
No related merge requests found
...@@ -319,6 +319,11 @@ private void cargarDatosDeVideo(DtVideo v){ ...@@ -319,6 +319,11 @@ private void cargarDatosDeVideo(DtVideo v){
} }
} }
if (spHora.getValue().toString().equals("0") && spMinuto.getValue().toString().equals("0") && spSegundos.getValue().toString().equals("0")) {
JOptionPane.showMessageDialog(null, "La duración del video no puede ser 0", "Error", JOptionPane.ERROR_MESSAGE);
} else {
int hora = (Integer) spHora.getValue(); int hora = (Integer) spHora.getValue();
int minuto = (Integer) spMinuto.getValue(); int minuto = (Integer) spMinuto.getValue();
int segundo = (Integer) spSegundos.getValue(); int segundo = (Integer) spSegundos.getValue();
...@@ -352,7 +357,9 @@ private void cargarDatosDeVideo(DtVideo v){ ...@@ -352,7 +357,9 @@ private void cargarDatosDeVideo(DtVideo v){
} }
} }
} }
} }}
catch (Exception e) { catch (Exception e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment