forked from Emmanuel1102/SoloInterfaces
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdvertenciaModificar.java
More file actions
79 lines (50 loc) · 1.76 KB
/
AdvertenciaModificar.java
File metadata and controls
79 lines (50 loc) · 1.76 KB
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
import java.awt.*;
import javax.swing.*;
import java.awt.Image;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
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 {
AdvertenciaModificar(){
setSize(470,200);
setResizable(false);
setDefaultCloseOperation(WindowConstants.DO_NOTHING_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);
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);
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();
}
}