Avance4.5 Ultima version con pantallas faltantes

This commit is contained in:
Roberto 2024-03-11 07:35:21 -06:00
parent e55d245551
commit bfeb3e7be9
1 changed files with 7 additions and 7 deletions

View File

@ -24,16 +24,16 @@ public class ventana2 {
JFrame frame = (JFrame) SwingUtilities.getWindowAncestor(panelV2); JFrame frame = (JFrame) SwingUtilities.getWindowAncestor(panelV2);
frame.dispose(); frame.dispose();
JFrame registerFrame = new JFrame("Seleccionar asiento");
registerFrame.setContentPane(new SeleccionarAsientoV()); // Por terminar
registerFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); //SeleccionarAsientoV sala = new SeleccionarAsientoV();
Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize(); //SeleccionarAsientoV.
/*Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
int height = pantalla.height; int height = pantalla.height;
int width = pantalla.width; int width = pantalla.width;
frame.setSize(width/2, height/2); frame.setSize(width/2, height/2);
frame.setLocationRelativeTo(null); frame.setLocationRelativeTo(null);*/
registerFrame.pack(); //SeleccionarAsientoV.setVisible(true);
registerFrame.setVisible(true);
} }
}); });
comprarBoletosButton.addActionListener(new ActionListener() { comprarBoletosButton.addActionListener(new ActionListener() {