forked from Emmanuel1102/SoloInterfaces
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpcionesEditar.java
More file actions
29 lines (21 loc) · 799 Bytes
/
OpcionesEditar.java
File metadata and controls
29 lines (21 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//Esta es una ventana emergente para sustituir las otras se supone que JOption si acepta booleanos
import javax.swing.JOptionPane;
public class OpcionesEditar{
public static void main(String[] args){
int Aviso = JOptionPane.showConfirmDialog(
null,
"¿ESTAS SEGURO GUARDAR LOS DATOS EDITADOS!?",
"",
JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE );
if(Aviso == JOptionPane.YES_OPTION)
{
JOptionPane.showMessageDialog(null, "¡SE HAN EDITADO LOS DATOS SATISFACTORIAMENTE!");
new PrincipalOriginal();
}
else
{
/////Aqui deberian ir todas las ventanas de editar
new EditarMaquinaria();
}
}
}