-
Notifications
You must be signed in to change notification settings - Fork 0
/
baseALU_OPbase.java
77 lines (68 loc) · 2.05 KB
/
baseALU_OPbase.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
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
@SuppressWarnings("serial")
public class baseALU_OPbase extends JFrame implements ActionListener
{
JLabel panel;
JButton Bagg, Beliminar;
ImageIcon imgFondo = new ImageIcon(getClass().getResource("/imagenes/1280720_baseALU_OPbase.png"));
public baseALU_OPbase()
{
setLayout(null);
//fondo panel----------------------------------------------------------------------------------------
panel = new JLabel();
panel.setIcon(new ImageIcon(imgFondo.getImage().getScaledInstance(1040, 585, Image.SCALE_SMOOTH)));
panel.setBounds(0, 0, 1040, 585);
add(panel);
//botones desde clase todo---------------------------------------------------------------------------
todo.claseBclub();
todo.Bclub.addActionListener(this);
panel.add(todo.Bclub);
todo.claseBatras();
todo.Batras.addActionListener(this);
panel.add(todo.Batras);
//Botones-------------------------------------------------------------------------------------
Bagg = new JButton(""); //AÑADIR
Bagg.setBounds(275, 180, 165, 165);
Bagg.setContentAreaFilled(false);
Bagg.setVisible(true);
Bagg.setBorder(null);
Bagg.addActionListener(this);
panel.add(Bagg);
Beliminar = new JButton(""); //ELIMINAR
Beliminar.setBounds(600, 180, 165, 165);
Beliminar.setContentAreaFilled(false);
Beliminar.setVisible(true);
Beliminar.setBorder(null);
Beliminar.addActionListener(this);
panel.add(Beliminar);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource() == Bagg)
{
}
if(e.getSource() == Beliminar)
{
}
if(e.getSource() == todo.Batras)
{
todo.claseFuncionBbase();
dispose();
}
if(e.getSource() == todo.Bclub)
{
todo.conclusion();
}
}
public static void main(String[] args)
{
baseALU_OPbase clase = new baseALU_OPbase();
clase.setBounds(0,0,1040, 585);
clase.setUndecorated(true);
clase.setVisible(true);
clase.setResizable(false);
clase.setLocationRelativeTo(null);
}
}