From 632f5fac0cbeb415ef1958bb0ea24d352d2fe0c3 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 13 Mar 2024 20:13:12 -0600 Subject: [PATCH] Cambio de JFrame a JPanel de SeleccionarAsientoV --- SeleccionarAsientoV.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/SeleccionarAsientoV.java b/SeleccionarAsientoV.java index bb1193e..b6cbaae 100644 --- a/SeleccionarAsientoV.java +++ b/SeleccionarAsientoV.java @@ -1,7 +1,7 @@ import javax.swing.*; import java.awt.*; -public class SeleccionarAsientoV extends JFrame { +public class SeleccionarAsientoV extends JPanel { private JPanel pSuperior = new JPanel(new FlowLayout(FlowLayout.LEFT)); private JButton bRegresar = new JButton("Regresar."); @@ -21,14 +21,12 @@ public class SeleccionarAsientoV extends JFrame { public SeleccionarAsientoV(Asiento [][] parAsientos) throws HeadlessException { - super("Seleccionar Asiento"); this.setLayout(new BorderLayout()); asientos = parAsientos; agregarComponentes(); crearCeldas(7,10); - iniciar(); } public void agregarComponentes(){ @@ -125,11 +123,4 @@ public class SeleccionarAsientoV extends JFrame { lSeleccionar.setText("Asientos seleccionados: " + noAsientosSeleccionados); lTotal.setText("Total: " + total + "$"); } - - public void iniciar(){ - this.setBounds(100,100,700,700); - //this.setResizable(false); - this.setVisible(true); - this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - } }