-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAdvertenciaModificar.java
84 lines (66 loc) · 2.46 KB
/
AdvertenciaModificar.java
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import java.awt.*;
import javax.swing.*;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import javax.swing.border.Border;
public class AdvertenciaModificar extends JFrame {
JFrame frame1;
AdvertenciaModificar(JFrame aux) {
this.frame1=aux;
setSize(470, 200);
setResizable(false);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setVisible(true);
JPanel ModifAdv = new JPanel();
ModifAdv.setLayout(null);
ModifAdv.setSize(200, 350);
ModifAdv.setBackground(Color.black);
ModifAdv.setBounds(0, 0, 470, 200);
JLabel etiquetaAviso;
etiquetaAviso = new JLabel("¿Estas seguro de modificar los datos?");
etiquetaAviso.setForeground(Color.white);
etiquetaAviso.setBounds(120, 20, 400, 50);
ModifAdv.add(etiquetaAviso);
JButton Seguro = new JButton("Si ,estoy seguro");
Seguro.setBackground(Color.black);
Seguro.setBounds(10, 80, 200, 50);
Seguro.setBorder(new ComponenteBotonRedondo(40));
Seguro.setForeground(Color.decode("#049cff"));
ModifAdv.add(Seguro);
Seguro.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
frame1.setConfirmar(true);
setVisible(false);
}
});
JButton Cobarde = new JButton("No ,no estoy seguro");
Cobarde.setBackground(Color.black);
Cobarde.setBounds(250, 80, 200, 50);
Cobarde.setBorder(new ComponenteBotonRedondo(40));
Cobarde.setForeground(Color.decode("#049cff"));
ModifAdv.add(Cobarde);
Cobarde.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
frame1.setConfirmar(false);
setVisible(false);
}
});
JLabel background = new JLabel();
background.add(ModifAdv);
background.setBounds(0, 0, 700, 700);
add(background);
setVisible(true);
}
/*public static void main(String[] args) {
new AdvertenciaModificar();
}*/
}