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=

Binary file not shown.

View File

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

View File

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