Avance4.5
This commit is contained in:
parent
90bca1959e
commit
e55d245551
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,7 @@
|
|||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
public class ventana2 {
|
||||
JPanel panelV2;
|
||||
|
@ -15,5 +18,29 @@ public class ventana2 {
|
|||
|
||||
public ventana2 (){
|
||||
|
||||
cerrarSesiónButton.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
JFrame frame = (JFrame) SwingUtilities.getWindowAncestor(panelV2);
|
||||
frame.dispose();
|
||||
|
||||
JFrame registerFrame = new JFrame("Seleccionar asiento");
|
||||
registerFrame.setContentPane(new SeleccionarAsientoV());
|
||||
registerFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
||||
Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
|
||||
int height = pantalla.height;
|
||||
int width = pantalla.width;
|
||||
frame.setSize(width/2, height/2);
|
||||
frame.setLocationRelativeTo(null);
|
||||
registerFrame.pack();
|
||||
registerFrame.setVisible(true);
|
||||
}
|
||||
});
|
||||
comprarBoletosButton.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue