From d4d6a4c691078a4adbceb7fd5f29978af1fc0e9c Mon Sep 17 00:00:00 2001 From: David Date: Tue, 19 Mar 2024 20:04:31 -0600 Subject: [PATCH] =?UTF-8?q?"Seleccionar=20asientos"=20sin=20par=C3=A1metro?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SeleccionarAsientoV.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SeleccionarAsientoV.java b/SeleccionarAsientoV.java index 4d51c87..61b024e 100644 --- a/SeleccionarAsientoV.java +++ b/SeleccionarAsientoV.java @@ -14,6 +14,8 @@ public class SeleccionarAsientoV extends JPanel { private JPanel pSuperior = new JPanel(new FlowLayout(FlowLayout.LEFT)); private JButton bRegresar = new JButton("Regresar."); private int noAsientosSeleccionados = 0; + DefaultComboBoxModel salas = new DefaultComboBoxModel(); + JComboBox cbSalas = new JComboBox(salas); private JLabel lSeleccionar = new JLabel("Asientos seleccionados: " + noAsientosSeleccionados); private JLabel lFuncion = new JLabel("FunciĆ³n: XXX"); @@ -54,7 +56,8 @@ public class SeleccionarAsientoV extends JPanel { public void agregarComponentes(){ pSuperior.add(this.bRegresar); pSuperior.add(lSeleccionar); - pSuperior.add(this.lFuncion); + pSuperior.add(this.cbSalas); + this.llenarSalas(); pInferior.add(this.lTotal); pInferior.add(this.bSeleccionar); @@ -63,6 +66,10 @@ public class SeleccionarAsientoV extends JPanel { this.add(pInferior,BorderLayout.SOUTH); } + public void llenarSalas(){ + + } + public void crearCeldas(int parX, int parY){ GridBagConstraints con = new GridBagConstraints();