mezontleTeam/ventana2.java

47 lines
1.4 KiB
Java
Raw Normal View History

2024-03-11 03:59:19 +00:00
import javax.swing.*;
2024-03-11 13:25:01 +00:00
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
2024-03-11 03:59:19 +00:00
public class ventana2 {
2024-03-11 04:25:41 +00:00
JPanel panelV2;
2024-03-11 03:59:19 +00:00
private JButton comprarBoletosButton;
private JButton carteleraButton;
private JButton cerrarSesiónButton;
private JButton button1;
private JButton button2;
private JButton button3;
private JButton button4;
private JButton button5;
private JButton button6;
private JScrollBar scrollBar1;
2024-03-11 05:31:33 +00:00
public ventana2 (){
2024-03-11 13:25:01 +00:00
cerrarSesiónButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JFrame frame = (JFrame) SwingUtilities.getWindowAncestor(panelV2);
frame.dispose();
// Por terminar
//SeleccionarAsientoV sala = new SeleccionarAsientoV();
//SeleccionarAsientoV.
/*Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
2024-03-11 13:25:01 +00:00
int height = pantalla.height;
int width = pantalla.width;
frame.setSize(width/2, height/2);
frame.setLocationRelativeTo(null);*/
//SeleccionarAsientoV.setVisible(true);
2024-03-11 13:25:01 +00:00
}
});
comprarBoletosButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
}
});
2024-03-11 05:31:33 +00:00
}
2024-03-11 03:59:19 +00:00
}