Merge remote-tracking branch 'origin/main'

This commit is contained in:
David 2024-03-13 20:13:36 -06:00
commit 078256ac1b
4 changed files with 27 additions and 0 deletions

View File

@ -1,4 +1,7 @@
import javax.swing.*; import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class ventana2 { public class ventana2 {
JPanel panelV2; JPanel panelV2;
@ -15,5 +18,29 @@ public class ventana2 {
public ventana2 (){ public ventana2 (){
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();
int height = pantalla.height;
int width = pantalla.width;
frame.setSize(width/2, height/2);
frame.setLocationRelativeTo(null);*/
//SeleccionarAsientoV.setVisible(true);
}
});
comprarBoletosButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
}
});
} }
} }