This commit is contained in:
Soka_jplr 2024-03-14 23:20:03 -06:00
parent 601d36fde5
commit e5b5f93087
6 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#Thu, 14 Mar 2024 23:03:37 -0600 #Thu, 14 Mar 2024 23:18:06 -0600
C\:\\Users\\juanl\\Documents\\SalaDeConciertos= C\:\\Users\\juanl\\Documents\\SalaDeConciertos=

Binary file not shown.

View File

@ -91,7 +91,7 @@ public class ControladorBoleto implements ActionListener{
registro.setLocationRelativeTo(null); registro.setLocationRelativeTo(null);
registro.setVisible(true); registro.setVisible(true);
ventana.dispose(); ventana.dispose();
} }else{
if(e.getSource()== ventana.getBtnSeleccionarAsiento()){ if(e.getSource()== ventana.getBtnSeleccionarAsiento()){
if(ventana.getLabelNumeroAsiento().getText().isEmpty()){ if(ventana.getLabelNumeroAsiento().getText().isEmpty()){
JOptionPane.showMessageDialog(null, "Error. Selecciona Un Asiento Libre"); JOptionPane.showMessageDialog(null, "Error. Selecciona Un Asiento Libre");
@ -109,6 +109,7 @@ public class ControladorBoleto implements ActionListener{
} }
} }
} }
}
private void pintarZona() { private void pintarZona() {
switch (ventana.getNumZona()) { switch (ventana.getNumZona()) {

View File

@ -28,6 +28,8 @@ public class seleccionarBoleto extends javax.swing.JFrame {
this.user = user; this.user = user;
initComponents(); initComponents();
ControladorBoleto controlador = new ControladorBoleto(this); ControladorBoleto controlador = new ControladorBoleto(this);
BtnRegreso.addActionListener(controlador);
btnSeleccionarAsiento.addActionListener(controlador);
} }
public JButton getBtnSeleccionarAsiento() { public JButton getBtnSeleccionarAsiento() {