Compare commits

..

No commits in common. "078256ac1b231a1b383896ba2807b90c24ef837a" and "bfeb3e7be9df5e56d0f852eb72638f2cf080378b" have entirely different histories.

1 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import javax.swing.*; import javax.swing.*;
import java.awt.*; import java.awt.*;
public class SeleccionarAsientoV extends JPanel { public class SeleccionarAsientoV extends JFrame {
private JPanel pSuperior = new JPanel(new FlowLayout(FlowLayout.LEFT)); private JPanel pSuperior = new JPanel(new FlowLayout(FlowLayout.LEFT));
private JButton bRegresar = new JButton("Regresar."); private JButton bRegresar = new JButton("Regresar.");
@ -21,12 +21,14 @@ public class SeleccionarAsientoV extends JPanel {
public SeleccionarAsientoV(Asiento [][] parAsientos) throws HeadlessException { public SeleccionarAsientoV(Asiento [][] parAsientos) throws HeadlessException {
super("Seleccionar Asiento");
this.setLayout(new BorderLayout()); this.setLayout(new BorderLayout());
asientos = parAsientos; asientos = parAsientos;
agregarComponentes(); agregarComponentes();
crearCeldas(7,10); crearCeldas(7,10);
iniciar();
} }
public void agregarComponentes(){ public void agregarComponentes(){
@ -123,4 +125,11 @@ public class SeleccionarAsientoV extends JPanel {
lSeleccionar.setText("Asientos seleccionados: " + noAsientosSeleccionados); lSeleccionar.setText("Asientos seleccionados: " + noAsientosSeleccionados);
lTotal.setText("Total: " + total + "$"); 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);
}
} }