Compare commits
No commits in common. "078256ac1b231a1b383896ba2807b90c24ef837a" and "bfeb3e7be9df5e56d0f852eb72638f2cf080378b" have entirely different histories.
078256ac1b
...
bfeb3e7be9
|
@ -1,7 +1,7 @@
|
|||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class SeleccionarAsientoV extends JPanel {
|
||||
public class SeleccionarAsientoV extends JFrame {
|
||||
|
||||
private JPanel pSuperior = new JPanel(new FlowLayout(FlowLayout.LEFT));
|
||||
private JButton bRegresar = new JButton("Regresar.");
|
||||
|
@ -21,12 +21,14 @@ public class SeleccionarAsientoV extends JPanel {
|
|||
|
||||
|
||||
public SeleccionarAsientoV(Asiento [][] parAsientos) throws HeadlessException {
|
||||
super("Seleccionar Asiento");
|
||||
this.setLayout(new BorderLayout());
|
||||
|
||||
asientos = parAsientos;
|
||||
|
||||
agregarComponentes();
|
||||
crearCeldas(7,10);
|
||||
iniciar();
|
||||
}
|
||||
|
||||
public void agregarComponentes(){
|
||||
|
@ -123,4 +125,11 @@ public class SeleccionarAsientoV extends JPanel {
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue