diff --git a/.gitignore b/.gitignore
index 1f6786d..0f1b169 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
private/
+/dist/
diff --git a/build/built-jar.properties b/build/built-jar.properties
index 45a1f2d..ec2fb4e 100644
--- a/build/built-jar.properties
+++ b/build/built-jar.properties
@@ -1,4 +1,4 @@
-#Sun, 10 Mar 2024 21:21:12 -0600
+#Thu, 14 Mar 2024 23:03:37 -0600
C\:\\Users\\juanl\\Documents\\SalaDeConciertos=
diff --git a/build/classes/.netbeans_automatic_build b/build/classes/.netbeans_automatic_build
deleted file mode 100644
index e69de29..0000000
diff --git a/build/classes/.netbeans_update_resources b/build/classes/.netbeans_update_resources
deleted file mode 100644
index e69de29..0000000
diff --git a/build/classes/Controlador/ControladorBoleto.class b/build/classes/Controlador/ControladorBoleto.class
new file mode 100644
index 0000000..1548a1d
Binary files /dev/null and b/build/classes/Controlador/ControladorBoleto.class differ
diff --git a/build/classes/Controlador/ControladorEcenario$1.class b/build/classes/Controlador/ControladorEcenario$1.class
deleted file mode 100644
index d304089..0000000
Binary files a/build/classes/Controlador/ControladorEcenario$1.class and /dev/null differ
diff --git a/build/classes/Controlador/ControladorEcenario.class b/build/classes/Controlador/ControladorEcenario.class
index 1a31566..57f338b 100644
Binary files a/build/classes/Controlador/ControladorEcenario.class and b/build/classes/Controlador/ControladorEcenario.class differ
diff --git a/build/classes/Controlador/ControladorLogin.class b/build/classes/Controlador/ControladorLogin.class
index 01643c8..f398469 100644
Binary files a/build/classes/Controlador/ControladorLogin.class and b/build/classes/Controlador/ControladorLogin.class differ
diff --git a/build/classes/Controlador/ControladorRegistro$1.class b/build/classes/Controlador/ControladorRegistro$1.class
index 2d7c1e1..0d5944e 100644
Binary files a/build/classes/Controlador/ControladorRegistro$1.class and b/build/classes/Controlador/ControladorRegistro$1.class differ
diff --git a/build/classes/Controlador/ControladorRegistro$2.class b/build/classes/Controlador/ControladorRegistro$2.class
index 39ed6b4..4b19d0d 100644
Binary files a/build/classes/Controlador/ControladorRegistro$2.class and b/build/classes/Controlador/ControladorRegistro$2.class differ
diff --git a/build/classes/Controlador/ControladorRegistro.class b/build/classes/Controlador/ControladorRegistro.class
index cc5e743..10a14ec 100644
Binary files a/build/classes/Controlador/ControladorRegistro.class and b/build/classes/Controlador/ControladorRegistro.class differ
diff --git a/build/classes/Main/Main.class b/build/classes/Main/Main.class
index 1c18313..fca2d4a 100644
Binary files a/build/classes/Main/Main.class and b/build/classes/Main/Main.class differ
diff --git a/build/classes/Modelo/Asiento.class b/build/classes/Modelo/Asiento.class
index 555c22d..8dbc411 100644
Binary files a/build/classes/Modelo/Asiento.class and b/build/classes/Modelo/Asiento.class differ
diff --git a/build/classes/Modelo/Conexion.class b/build/classes/Modelo/Conexion.class
index 6f71bd1..e48368c 100644
Binary files a/build/classes/Modelo/Conexion.class and b/build/classes/Modelo/Conexion.class differ
diff --git a/build/classes/Modelo/Consulta.class b/build/classes/Modelo/Consulta.class
index e92c53c..ba2895d 100644
Binary files a/build/classes/Modelo/Consulta.class and b/build/classes/Modelo/Consulta.class differ
diff --git a/build/classes/Modelo/Sala.class b/build/classes/Modelo/Sala.class
index d32e4fd..3cc5d1c 100644
Binary files a/build/classes/Modelo/Sala.class and b/build/classes/Modelo/Sala.class differ
diff --git a/build/classes/Modelo/Usuario.class b/build/classes/Modelo/Usuario.class
index 18cae0b..35db93e 100644
Binary files a/build/classes/Modelo/Usuario.class and b/build/classes/Modelo/Usuario.class differ
diff --git a/build/classes/Modelo/Zona.class b/build/classes/Modelo/Zona.class
index d68f434..553e17f 100644
Binary files a/build/classes/Modelo/Zona.class and b/build/classes/Modelo/Zona.class differ
diff --git a/build/classes/Vista/ConfirmacionPago.class b/build/classes/Vista/ConfirmacionPago.class
index dae17be..4cc4cb8 100644
Binary files a/build/classes/Vista/ConfirmacionPago.class and b/build/classes/Vista/ConfirmacionPago.class differ
diff --git a/build/classes/Vista/Login.class b/build/classes/Vista/Login.class
index 3436ba4..3395d09 100644
Binary files a/build/classes/Vista/Login.class and b/build/classes/Vista/Login.class differ
diff --git a/build/classes/Vista/MetodoPago$1.class b/build/classes/Vista/MetodoPago$1.class
index 3e75688..7521066 100644
Binary files a/build/classes/Vista/MetodoPago$1.class and b/build/classes/Vista/MetodoPago$1.class differ
diff --git a/build/classes/Vista/MetodoPago$2.class b/build/classes/Vista/MetodoPago$2.class
index 1905c97..9ae5d5f 100644
Binary files a/build/classes/Vista/MetodoPago$2.class and b/build/classes/Vista/MetodoPago$2.class differ
diff --git a/build/classes/Vista/MetodoPago$3.class b/build/classes/Vista/MetodoPago$3.class
index 351269e..ba72f0f 100644
Binary files a/build/classes/Vista/MetodoPago$3.class and b/build/classes/Vista/MetodoPago$3.class differ
diff --git a/build/classes/Vista/MetodoPago.class b/build/classes/Vista/MetodoPago.class
index 3a85959..bdec8c8 100644
Binary files a/build/classes/Vista/MetodoPago.class and b/build/classes/Vista/MetodoPago.class differ
diff --git a/build/classes/Vista/Registro.class b/build/classes/Vista/Registro.class
index e9ea532..1e60201 100644
Binary files a/build/classes/Vista/Registro.class and b/build/classes/Vista/Registro.class differ
diff --git a/build/classes/Vista/SalaPrincipal.class b/build/classes/Vista/SalaPrincipal.class
index 454e2a7..4cc27c5 100644
Binary files a/build/classes/Vista/SalaPrincipal.class and b/build/classes/Vista/SalaPrincipal.class differ
diff --git a/build/classes/Vista/seleccionarBoleto.class b/build/classes/Vista/seleccionarBoleto.class
index 7938c71..7065572 100644
Binary files a/build/classes/Vista/seleccionarBoleto.class and b/build/classes/Vista/seleccionarBoleto.class differ
diff --git a/build/classes/Vista/seleccionarBoleto.form b/build/classes/Vista/seleccionarBoleto.form
deleted file mode 100644
index 1b61bb1..0000000
--- a/build/classes/Vista/seleccionarBoleto.form
+++ /dev/null
@@ -1,359 +0,0 @@
-
-
-
diff --git a/dist/README.TXT b/dist/README.TXT
deleted file mode 100644
index 5f5b264..0000000
--- a/dist/README.TXT
+++ /dev/null
@@ -1,32 +0,0 @@
-========================
-BUILD OUTPUT DESCRIPTION
-========================
-
-When you build an Java application project that has a main class, the IDE
-automatically copies all of the JAR
-files on the projects classpath to your projects dist/lib folder. The IDE
-also adds each of the JAR files to the Class-Path element in the application
-JAR files manifest file (MANIFEST.MF).
-
-To run the project from the command line, go to the dist folder and
-type the following:
-
-java -jar "SalaDeConciertos.jar"
-
-To distribute this project, zip up the dist folder (including the lib folder)
-and distribute the ZIP file.
-
-Notes:
-
-* If two JAR files on the project classpath have the same name, only the first
-JAR file is copied to the lib folder.
-* Only JAR files are copied to the lib folder.
-If the classpath contains other types of files or folders, these files (folders)
-are not copied.
-* If a library on the projects classpath also has a Class-Path element
-specified in the manifest,the content of the Class-Path element has to be on
-the projects runtime path.
-* To set a main class in a standard Java project, right-click the project node
-in the Projects window and choose Properties. Then click Run and enter the
-class name in the Main Class field. Alternatively, you can manually type the
-class name in the manifest Main-Class element.
diff --git a/dist/SalaDeConciertos.jar b/dist/SalaDeConciertos.jar
index 09a2704..8f1d095 100644
Binary files a/dist/SalaDeConciertos.jar and b/dist/SalaDeConciertos.jar differ
diff --git a/dist/lib/mysql-connector-java-8.0.30.jar b/dist/lib/mysql-connector-java-8.0.30.jar
deleted file mode 100644
index 92ebe1b..0000000
Binary files a/dist/lib/mysql-connector-java-8.0.30.jar and /dev/null differ
diff --git a/nbproject/project.xml b/nbproject/project.xml
deleted file mode 100644
index df94d3d..0000000
--- a/nbproject/project.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- org.netbeans.modules.java.j2seproject
-
-
- SalaDeConciertos
-
-
-
-
-
-
-
-
-
diff --git a/src/Controlador/ControladorBoleto.java b/src/Controlador/ControladorBoleto.java
new file mode 100644
index 0000000..f2f0c78
--- /dev/null
+++ b/src/Controlador/ControladorBoleto.java
@@ -0,0 +1,132 @@
+
+package Controlador;
+
+import Modelo.Asiento;
+import Modelo.Consulta;
+import Modelo.Usuario;
+import Vista.SalaPrincipal;
+import Vista.seleccionarBoleto;
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.GridLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.SwingConstants;
+
+/*
+ * @author Juan Ska
+*/
+public class ControladorBoleto implements ActionListener{
+ seleccionarBoleto ventana;
+ Consulta consulta = new Consulta();
+ public ControladorBoleto(seleccionarBoleto ventana) {
+ this.ventana = ventana;
+ control();
+ }
+
+ private void control() {
+ ventana.getjPanel2().setSize(ventana.getPanelB().getWidth(), ventana.getPanelB().getHeight());
+ ventana.getjPanel2().setLayout(new java.awt.BorderLayout());
+ cambiarPanel(ventana.getPanelB());
+ ventana.getjPanel2().add(ventana.getPanelB(),BorderLayout.CENTER);
+ ventana.getjPanel2().revalidate();
+ ventana.getjPanel2().repaint();
+ ventana.revalidate();
+ ventana.repaint();
+ pintarZona();
+ }
+
+ private void cambiarPanel(JPanel panelB) {
+ panelB.removeAll();
+ switch (ventana.getNumZona()) {
+ case 1:
+ panelB.setLayout(new GridLayout(7, 5));
+ break;
+ case 2:
+ panelB.setLayout(new GridLayout(4, 6));
+ break;
+ case 3:
+ panelB.setLayout(new GridLayout(2, 5));
+ break;
+ case 4:
+ panelB.setLayout(new GridLayout(7, 5));
+ break;
+ default:
+ }
+
+ JButton[][] matrizB = new JButton[ventana.getFilas()][ventana.getColumnas()];
+
+ for (int i = 0; i < ventana.getFilas(); i++) {
+ for (int j = 0; j < ventana.getColumnas(); j++) {
+ JButton botonaleatorio = new JButton();
+ botonaleatorio.setText(ventana.getZona().getAsientos()[i][j].getNombre());
+ botonaleatorio.setBackground(new Color(243, 243, 243, 243));
+ botonaleatorio.setHorizontalTextPosition( SwingConstants.CENTER );
+ botonaleatorio.setVerticalTextPosition( SwingConstants.BOTTOM );
+ if(ventana.getZona().getAsientos()[i][j].isEstado()==true){
+ ImageIcon imagen = new ImageIcon("src\\Images\\asientoLibre.png");
+ botonaleatorio.setIcon(imagen);
+ }else{
+ ImageIcon imagen = new ImageIcon("src\\Images\\asientoOcupado.png");
+ botonaleatorio.setIcon(imagen);
+ }
+ botonaleatorio.addActionListener(this);
+ botonaleatorio.setPreferredSize(new Dimension(50, 50));
+ matrizB[i][j] = botonaleatorio;
+ panelB.add(matrizB[i][j]);
+
+ }
+ }
+ }
+
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ if(e.getSource()==ventana.getBtnRegreso()){
+ SalaPrincipal registro = new SalaPrincipal(ventana.getUser());
+ registro.setLocationRelativeTo(null);
+ registro.setVisible(true);
+ ventana.dispose();
+ }
+ if(e.getSource()== ventana.getBtnSeleccionarAsiento()){
+ if(ventana.getLabelNumeroAsiento().getText().isEmpty()){
+ JOptionPane.showMessageDialog(null, "Error. Selecciona Un Asiento Libre");
+ }
+ }else{
+ JButton bon = (JButton) e.getSource();
+ Asiento asiento = consulta.getAsiento(bon.getText(),ventana.getZona().getId());
+ if(asiento.isEstado()){
+ ventana.getLabelNumeroAsiento().setText(asiento.getNombre());
+ ventana.getLabelCostoAsiento().setText("$"+ventana.getZona().getPrecio());
+ }else{
+ JOptionPane.showMessageDialog(null, "Error. Selecciona Un Asiento Libre");
+ ventana.getLabelNumeroAsiento().setText("");
+ ventana.getLabelCostoAsiento().setText("");
+ }
+ }
+ }
+
+ private void pintarZona() {
+ switch (ventana.getNumZona()) {
+ case 1:
+ ventana.getLabelZona().setText("Zona B");
+ break;
+ case 2:
+ ventana.getLabelZona().setText("Zona General");
+ break;
+ case 3:
+ ventana.getLabelZona().setText("Zona VIP");
+ break;
+ case 4:
+ ventana.getLabelZona().setText("Zona C");
+ break;
+ default:
+ throw new AssertionError();
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/src/Controlador/ControladorEcenario.java b/src/Controlador/ControladorEcenario.java
index e548541..fdc16b5 100644
--- a/src/Controlador/ControladorEcenario.java
+++ b/src/Controlador/ControladorEcenario.java
@@ -6,18 +6,18 @@ import Modelo.Sala;
import Modelo.Zona;
import Vista.SalaPrincipal;
import Vista.seleccionarBoleto;
-import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
+import java.awt.event.MouseEvent;
+import java.awt.event.MouseListener;
import javax.swing.ImageIcon;
-import javax.swing.JButton;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
/*
* @author Juan Ska
*/
-public class ControladorEcenario {
+public final class ControladorEcenario implements MouseListener{
private SalaPrincipal ventanaSala;
@@ -52,39 +52,95 @@ public class ControladorEcenario {
sala = new Sala(0, zonas);
}
public void crearGUI(){
- crearZonaB();
+ crearZona(7,5, zonas[0],1);
+ crearZona(4,6, zonas[1],2);
+ crearZona(2,5, zonas[2],3);
+ crearZona(7,5, zonas[3],4);
}
- public void crearZonaB() {
- //panelZonaB.setLayout(new GridLayout(7,5));
- ventanaSala.getPanelB().setLayout(new GridLayout(7, 5));
+ public void crearZona(int filas, int columnas, Zona zona,int numeroP ) {
+ JPanel panel = null;
+ switch (numeroP) {
+ case 1:
+ panel = ventanaSala.getPanelB();
+ panel.setLayout(new GridLayout(7, 5));
+ break;
+ case 2:
+ panel = ventanaSala.getPanelGeneral();
+ panel.setLayout(new GridLayout(4, 6));
+ break;
+ case 3:
+ panel = ventanaSala.getPanelVip();
+ panel.setLayout(new GridLayout(2, 5));
+ break;
+ case 4:
+ panel = ventanaSala.getPanelC();
+ panel.setLayout(new GridLayout(7, 5));
+ break;
+ default:
+ }
- JButton[][] matrizB = new JButton[7][5];
+ JLabel[][] matrizB = new JLabel[filas][columnas];
- for (int i = 0; i < 7; i++) {
- for (int j = 0; j < 5; j++) {
- ImageIcon imagen = new ImageIcon("src\\Images\\music.png");
- JButton botonaleatorio = new JButton();
- botonaleatorio.setBorderPainted(false);
- botonaleatorio.setIcon(imagen);
- if(zonas[0].getAsientos()[i][j].isEstado()==true){
- botonaleatorio.setBackground(Color.GREEN);
+ for (int i = 0; i < filas; i++) {
+ for (int j = 0; j < columnas; j++) {
+ JLabel botonaleatorio = new JLabel();
+ if(zona.getAsientos()[i][j].isEstado()==true){
+ ImageIcon imagen = new ImageIcon("src\\Images\\asientoLibre.png");
+ botonaleatorio.setIcon(imagen);
}else{
- botonaleatorio.setBackground(Color.RED);
+ ImageIcon imagen = new ImageIcon("src\\Images\\asientoOcupado.png");
+ botonaleatorio.setIcon(imagen);
}
- botonaleatorio.setPreferredSize(new Dimension(30, 30));
+ botonaleatorio.setPreferredSize(new Dimension(34, 30));
matrizB[i][j] = botonaleatorio;
- ventanaSala.getPanelB().add(matrizB[i][j]);
- botonaleatorio.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- seleccionarBoleto ventana = new seleccionarBoleto(zonas[0], ventanaSala.getPanelB(), matrizB);
- ventana.setLocationRelativeTo(null);
- ventana.setVisible(true);
- ventanaSala.dispose();
- }
- });
+ panel.add(matrizB[i][j]);
+
}
}
}
+
+ @Override
+ public void mouseClicked(MouseEvent e) {
+ if(e.getSource()==ventanaSala.getPanelB()){
+ seleccionarBoleto ventana = new seleccionarBoleto(zonas[0], ventanaSala.getPanelB(),7,5,1, ventanaSala.getUser());
+ ventana.setLocationRelativeTo(null);
+ ventana.setVisible(true);
+ ventanaSala.dispose();
+ }
+ if(e.getSource()==ventanaSala.getPanelGeneral()){
+ seleccionarBoleto ventana = new seleccionarBoleto(zonas[1], ventanaSala.getPanelGeneral(),4,6,2, ventanaSala.getUser());
+ ventana.setLocationRelativeTo(null);
+ ventana.setVisible(true);
+ ventanaSala.dispose();
+ }
+ if(e.getSource()==ventanaSala.getPanelVip()){
+ seleccionarBoleto ventana = new seleccionarBoleto(zonas[2], ventanaSala.getPanelVip(),2,5,3, ventanaSala.getUser());
+ ventana.setLocationRelativeTo(null);
+ ventana.setVisible(true);
+ ventanaSala.dispose();
+ }
+ if(e.getSource()==ventanaSala.getPanelC()){
+ seleccionarBoleto ventana = new seleccionarBoleto(zonas[3], ventanaSala.getPanelC(),7,5,4, ventanaSala.getUser());
+ ventana.setLocationRelativeTo(null);
+ ventana.setVisible(true);
+ ventanaSala.dispose();
+ }
+ }
+
+ @Override
+ public void mousePressed(MouseEvent e) {
+ }
+
+ @Override
+ public void mouseReleased(MouseEvent e) {
+ }
+
+ @Override
+ public void mouseEntered(MouseEvent e) {
+ }
+
+ @Override
+ public void mouseExited(MouseEvent e) {
+ }
}
diff --git a/src/Controlador/ControladorLogin.java b/src/Controlador/ControladorLogin.java
index 250b8f2..080f7ea 100644
--- a/src/Controlador/ControladorLogin.java
+++ b/src/Controlador/ControladorLogin.java
@@ -16,6 +16,7 @@ import javax.swing.JOptionPane;
public class ControladorLogin implements ActionListener{
private Login login;
private Consulta consulta = new Consulta();
+
public ControladorLogin(Login login) {
this.login = login;
}
diff --git a/src/Main/Main.java b/src/Main/Main.java
index 402e384..287eb95 100644
--- a/src/Main/Main.java
+++ b/src/Main/Main.java
@@ -7,12 +7,12 @@ import Vista.SalaPrincipal;
public class Main {
public static void main(String[] args) {
- Login login = new Login();
- login.setLocationRelativeTo(null);
- login.setVisible(true);
- /*SalaPrincipal login = new SalaPrincipal(new Usuario());
+ /*Login login = new Login();
login.setLocationRelativeTo(null);
login.setVisible(true);*/
+ SalaPrincipal login = new SalaPrincipal(new Usuario());
+ login.setLocationRelativeTo(null);
+ login.setVisible(true);
}
}
\ No newline at end of file
diff --git a/src/Modelo/Asiento.java b/src/Modelo/Asiento.java
index fc15632..6e938a1 100644
--- a/src/Modelo/Asiento.java
+++ b/src/Modelo/Asiento.java
@@ -21,7 +21,8 @@ public class Asiento{
this.estado = estado;
this.id_zona = id_zona;
}
-
+ public Asiento() {
+ }
public int getId() {
return id;
}
diff --git a/src/Modelo/Consulta.java b/src/Modelo/Consulta.java
index d29661c..84150f1 100644
--- a/src/Modelo/Consulta.java
+++ b/src/Modelo/Consulta.java
@@ -143,5 +143,27 @@ public class Consulta {
return asientos;
}
+
+ public Asiento getAsiento(String numero, int id) {
+ Asiento asiento = new Asiento();
+ try {
+ conexion = cn.conectar();
+ Statement stm;
+ String sql ="select * from asiento "
+ + "where zona_id= '"+id+"' and nombre_asiento='"+numero+"'";
+ stm = conexion.createStatement();
+ ResultSet resultado = stm.executeQuery(sql);
+ while(resultado.next()){
+ asiento.setId(resultado.getInt(1));
+ asiento.setNombre(resultado.getString(2));
+ asiento.setEstado(resultado.getBoolean(3));
+ asiento.setId_zona(resultado.getInt(4));
+ }
+ cn.cerrarconexion();
+ } catch (SQLException e) {
+ System.out.println(e.toString());
+ }
+ return asiento;
+ }
}
diff --git a/build/classes/Vista/ConfirmacionPago.form b/src/Vista/ConfirmacionPago.form
similarity index 100%
rename from build/classes/Vista/ConfirmacionPago.form
rename to src/Vista/ConfirmacionPago.form
diff --git a/src/Vista/confirmacionPago.java b/src/Vista/ConfirmacionPago.java
similarity index 100%
rename from src/Vista/confirmacionPago.java
rename to src/Vista/ConfirmacionPago.java
diff --git a/build/classes/Vista/Login.form b/src/Vista/Login.form
similarity index 100%
rename from build/classes/Vista/Login.form
rename to src/Vista/Login.form
diff --git a/src/Vista/login.java b/src/Vista/Login.java
similarity index 100%
rename from src/Vista/login.java
rename to src/Vista/Login.java
diff --git a/build/classes/Vista/MetodoPago.form b/src/Vista/MetodoPago.form
similarity index 100%
rename from build/classes/Vista/MetodoPago.form
rename to src/Vista/MetodoPago.form
diff --git a/src/Vista/metodoPago.java b/src/Vista/MetodoPago.java
similarity index 100%
rename from src/Vista/metodoPago.java
rename to src/Vista/MetodoPago.java
diff --git a/build/classes/Vista/Registro.form b/src/Vista/Registro.form
similarity index 100%
rename from build/classes/Vista/Registro.form
rename to src/Vista/Registro.form
diff --git a/src/Vista/registro.java b/src/Vista/Registro.java
similarity index 100%
rename from src/Vista/registro.java
rename to src/Vista/Registro.java
diff --git a/build/classes/Vista/SalaPrincipal.form b/src/Vista/SalaPrincipal.form
similarity index 100%
rename from build/classes/Vista/SalaPrincipal.form
rename to src/Vista/SalaPrincipal.form
diff --git a/src/Vista/salaPrincipal.java b/src/Vista/SalaPrincipal.java
similarity index 87%
rename from src/Vista/salaPrincipal.java
rename to src/Vista/SalaPrincipal.java
index 8fd609a..49efecf 100644
--- a/src/Vista/salaPrincipal.java
+++ b/src/Vista/SalaPrincipal.java
@@ -6,14 +6,7 @@ package Vista;
import Controlador.ControladorEcenario;
import Modelo.Usuario;
-import java.awt.BorderLayout;
import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.GridBagLayout;
-import java.awt.GridLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;
@@ -34,66 +27,15 @@ public class SalaPrincipal extends javax.swing.JFrame {
initComponents();
setTitle("Sala Principal");
setLocationRelativeTo(null);
- crearZonaVip();
- crearZonaG();
- crearZonaC();
ControladorEcenario controlador = new ControladorEcenario(this);
- }
-
-
- public JButton[][] crearZonaVip() {
- panelVip.setLayout(new GridLayout(2, 5));
- JButton[][] matrizV = new JButton[2][5];
-
- for (int i = 0; i < 2; i++) {
- for (int j = 0; j < 5; j++) {
- imagen = new ImageIcon("src\\Images\\music.png");
- JButton botonaleatorio = new JButton();
- botonaleatorio.setBorderPainted(false);
- botonaleatorio.setIcon(imagen);
- botonaleatorio.setBackground(new Color(243, 243, 243, 243));
- botonaleatorio.setPreferredSize(new Dimension(30, 30));
- matrizV[i][j] = botonaleatorio;
- panelVip.add(matrizV[i][j]);
- }
- }
- return matrizV;
- }
-
- public void crearZonaG() {
- panelGeneral.setLayout(new GridLayout(4, 6));
- JButton[][] matrizG = new JButton[4][6];
-
- for (int i = 0; i < 4; i++) {
- for (int j = 0; j < 6; j++) {
- imagen = new ImageIcon("src\\Images\\music.png");
- JButton botonaleatorio = new JButton();
- botonaleatorio.setBorderPainted(false);
- botonaleatorio.setIcon(imagen);
- botonaleatorio.setBackground(new Color(243, 243, 243, 243));
- botonaleatorio.setPreferredSize(new Dimension(30, 30));
- matrizG[i][j] = botonaleatorio;
- panelGeneral.add(matrizG[i][j]);
- }
- }
- }
-
- public void crearZonaC() {
- panelC.setLayout(new GridLayout(7, 5));
- JButton[][] matrizC = new JButton[7][5];
-
- for (int i = 0; i < 7; i++) {
- for (int j = 0; j < 5; j++) {
- imagen = new ImageIcon("src\\Images\\music.png");
- JButton botonaleatorio = new JButton();
- botonaleatorio.setBorderPainted(false);
- botonaleatorio.setIcon(imagen);
- botonaleatorio.setBackground(new Color(243, 243, 243, 243));
- botonaleatorio.setPreferredSize(new Dimension(30, 30));
- matrizC[i][j] = botonaleatorio;
- panelC.add(matrizC[i][j]);
- }
- }
+ panelB.setBackground(new Color(180, 180, 180));
+ panelC.setBackground(new Color(180, 180, 180));
+ panelGeneral.setBackground(new Color(180, 180, 180));
+ panelVip.setBackground(new Color(180, 180, 180));
+ panelB.addMouseListener(controlador);
+ panelC.addMouseListener(controlador);
+ panelGeneral.addMouseListener(controlador);
+ panelVip.addMouseListener(controlador);
}
public Usuario getUser() {
diff --git a/src/Vista/confirmacionPago.form b/src/Vista/confirmacionPago.form
deleted file mode 100644
index 587b25c..0000000
--- a/src/Vista/confirmacionPago.form
+++ /dev/null
@@ -1,186 +0,0 @@
-
-
-
diff --git a/src/Vista/login.form b/src/Vista/login.form
deleted file mode 100644
index 23d1030..0000000
--- a/src/Vista/login.form
+++ /dev/null
@@ -1,243 +0,0 @@
-
-
-
diff --git a/src/Vista/metodoPago.form b/src/Vista/metodoPago.form
deleted file mode 100644
index 90ec4bc..0000000
--- a/src/Vista/metodoPago.form
+++ /dev/null
@@ -1,259 +0,0 @@
-
-
-
diff --git a/src/Vista/registro.form b/src/Vista/registro.form
deleted file mode 100644
index 8ff9830..0000000
--- a/src/Vista/registro.form
+++ /dev/null
@@ -1,215 +0,0 @@
-
-
-
diff --git a/src/Vista/salaPrincipal.form b/src/Vista/salaPrincipal.form
deleted file mode 100644
index 8ec2c27..0000000
--- a/src/Vista/salaPrincipal.form
+++ /dev/null
@@ -1,388 +0,0 @@
-
-
-
diff --git a/src/Vista/seleccionarBoleto.form b/src/Vista/seleccionarBoleto.form
index 1b61bb1..3ef3679 100644
--- a/src/Vista/seleccionarBoleto.form
+++ b/src/Vista/seleccionarBoleto.form
@@ -89,58 +89,49 @@
-
-
-
-
-
-
+
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
+
@@ -154,42 +145,39 @@
-
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
-
@@ -197,13 +185,10 @@
-
+
-
-
-
-
+
@@ -239,11 +224,6 @@
-
-
-
-
-
@@ -254,20 +234,9 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -281,19 +250,19 @@
-
+
-
+
-
+
@@ -325,7 +294,7 @@
-
+
diff --git a/src/Vista/seleccionarBoleto.java b/src/Vista/seleccionarBoleto.java
index 7eb8771..f5c6423 100644
--- a/src/Vista/seleccionarBoleto.java
+++ b/src/Vista/seleccionarBoleto.java
@@ -1,10 +1,11 @@
package Vista;
+import Controlador.ControladorBoleto;
+import Modelo.Usuario;
import Modelo.Zona;
import java.awt.BorderLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
import javax.swing.JButton;
+import javax.swing.JLabel;
import javax.swing.JPanel;
/**
@@ -12,49 +13,121 @@ import javax.swing.JPanel;
* @author reyes
*/
public class seleccionarBoleto extends javax.swing.JFrame {
-
- public seleccionarBoleto(Zona zona, JPanel panelB, JButton[][] matrizB) {
+ private JPanel panelB;
+ private int numZona;
+ private int filas;
+ private int columnas;
+ private Zona zona;
+ private Usuario user;
+ public seleccionarBoleto(Zona zona, JPanel panelB, int filas, int columnas, int numZona, Usuario user) {
+ this.panelB = panelB;
+ this.numZona = numZona;
+ this.filas = filas;
+ this.columnas = columnas;
+ this.zona = zona;
+ this.user = user;
initComponents();
- jPanel2.setSize(panelB.getWidth(), panelB.getHeight());
- jPanel2.setLayout(new java.awt.BorderLayout());
- jPanel2.add(panelB,BorderLayout.CENTER);
- jPanel2.revalidate();
- jPanel2.repaint();
+ ControladorBoleto controlador = new ControladorBoleto(this);
}
+ public JButton getBtnSeleccionarAsiento() {
+ return btnSeleccionarAsiento;
+ }
+
+ public JPanel getjPanel2() {
+ return jPanel2;
+ }
+
+ public JLabel getLabelCostoAsiento() {
+ return labelCostoAsiento;
+ }
+
+ public JPanel getPanelB() {
+ return panelB;
+ }
+
+ public int getNumZona() {
+ return numZona;
+ }
+
+ public int getFilas() {
+ return filas;
+ }
+
+ public int getColumnas() {
+ return columnas;
+ }
+
+ public Zona getZona() {
+ return zona;
+ }
+
+ public JLabel getLabelOcupado() {
+ return labelOcupado;
+ }
+
+ public JLabel getLabelDisponible() {
+ return labelDisponible;
+ }
+
+ public JLabel getLabelNumeroAsiento() {
+ return labelNumeroAsiento;
+ }
+
+ public Usuario getUser() {
+ return user;
+ }
+
+ public JButton getBtnRegreso() {
+ return BtnRegreso;
+ }
+
+ public JLabel getLabelZona() {
+ return labelZona;
+ }
+
+
@SuppressWarnings("unchecked")
// //GEN-BEGIN:initComponents
private void initComponents() {
+ logo1 = new javax.swing.JLabel();
+ jButton1 = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
- jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
- jLabel3 = new javax.swing.JLabel();
+ labelZona = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
- jLabel4 = new javax.swing.JLabel();
- jLabel5 = new javax.swing.JLabel();
- jLabel6 = new javax.swing.JLabel();
+ labelOcupado = new javax.swing.JLabel();
+ labelDisponible = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
- jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
- jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
- jLabel13 = new javax.swing.JLabel();
- jLabel14 = new javax.swing.JLabel();
- jLabel15 = new javax.swing.JLabel();
- jButton1 = new javax.swing.JButton();
+ labelNumeroAsiento = new javax.swing.JLabel();
+ labelCostoAsiento = new javax.swing.JLabel();
+ jPanel3 = new javax.swing.JPanel();
+ logo2 = new javax.swing.JLabel();
+ logoimagen = new javax.swing.JLabel();
+ BtnRegreso = new javax.swing.JButton();
+ btnSeleccionarAsiento = new javax.swing.JButton();
+
+ logo1.setBackground(new java.awt.Color(0, 0, 204));
+ logo1.setFont(new java.awt.Font("Sitka Text", 1, 18)); // NOI18N
+ logo1.setForeground(new java.awt.Color(102, 102, 102));
+ logo1.setText("Sala de Conciertos");
+
+ jButton1.setBackground(new java.awt.Color(235, 235, 235));
+ jButton1.setFont(new java.awt.Font("Segoe UI", 3, 12)); // NOI18N
+ jButton1.setForeground(new java.awt.Color(153, 0, 0));
+ jButton1.setText("Atras");
+ jButton1.setBorderPainted(false);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setMaximumSize(new java.awt.Dimension(32767, 32767));
- jPanel1.setBackground(new java.awt.Color(249, 244, 244));
+ jPanel1.setBackground(new java.awt.Color(235, 235, 235));
- jLabel1.setText("Sala de Conciertos");
-
- jLabel2.setText("Zona X");
-
- jLabel3.setText("Breve descripcion de la zona");
+ jLabel2.setText("Zona:");
jPanel2.setBackground(new java.awt.Color(204, 204, 255));
@@ -69,122 +142,134 @@ public class seleccionarBoleto extends javax.swing.JFrame {
.addGap(0, 290, Short.MAX_VALUE)
);
- jLabel4.setText("X");
-
- jLabel5.setText("X");
-
- jLabel6.setText("X");
-
jLabel7.setText("Ocupado");
- jLabel8.setText("Fuera Servicio");
-
jLabel9.setText("Disponible");
- jLabel10.setText("Zona de Asiento:");
-
jLabel11.setText("Numero de Asiento:");
jLabel12.setText("Costo de Asiento:");
- jLabel13.setText("X");
+ jPanel3.setBackground(new java.awt.Color(235, 235, 235));
- jLabel14.setText("X");
+ logo2.setBackground(new java.awt.Color(0, 0, 204));
+ logo2.setFont(new java.awt.Font("Sitka Text", 1, 18)); // NOI18N
+ logo2.setForeground(new java.awt.Color(102, 102, 102));
+ logo2.setText("Sala de Conciertos");
- jLabel15.setText("X");
+ BtnRegreso.setBackground(new java.awt.Color(235, 235, 235));
+ BtnRegreso.setFont(new java.awt.Font("Segoe UI", 3, 12)); // NOI18N
+ BtnRegreso.setForeground(new java.awt.Color(153, 0, 0));
+ BtnRegreso.setText("Atras");
+ BtnRegreso.setBorderPainted(false);
- jButton1.setBackground(new java.awt.Color(249, 249, 249));
- jButton1.setText("<- Regresar");
- jButton1.setBorderPainted(false);
+ javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
+ jPanel3.setLayout(jPanel3Layout);
+ jPanel3Layout.setHorizontalGroup(
+ jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(BtnRegreso)
+ .addGap(45, 45, 45)
+ .addComponent(logoimagen, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(logo2)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ );
+ jPanel3Layout.setVerticalGroup(
+ jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel3Layout.createSequentialGroup()
+ .addComponent(BtnRegreso)
+ .addGap(0, 0, Short.MAX_VALUE))
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
+ .addGap(0, 6, Short.MAX_VALUE)
+ .addComponent(logoimagen, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(logo2)
+ .addGap(21, 21, 21))
+ );
+
+ btnSeleccionarAsiento.setBackground(new java.awt.Color(51, 51, 51));
+ btnSeleccionarAsiento.setForeground(new java.awt.Color(255, 255, 255));
+ btnSeleccionarAsiento.setText("Seleccionar");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
- .addGap(25, 25, 25)
- .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
- .addGap(34, 34, 34)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel4)
- .addComponent(jLabel5)
- .addComponent(jLabel6))
- .addGap(18, 18, 18)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel7)
- .addComponent(jLabel8)
- .addComponent(jLabel9)))
- .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
- .addGap(25, 25, 25)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jLabel11)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel14))
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jLabel10)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel13))
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jLabel12)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel15))))))
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGap(37, 37, 37)
+ .addGap(36, 36, 36)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel3)
- .addComponent(jLabel2)
- .addComponent(jLabel1)))
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
+ .addComponent(labelOcupado)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(jLabel2)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(labelZona, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(jLabel7)
+ .addGap(89, 89, 89)
+ .addComponent(jLabel9)))
+ .addGap(57, 57, 57))
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(jLabel11)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(labelNumeroAsiento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(labelDisponible)
+ .addGap(0, 0, Short.MAX_VALUE))
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(jLabel12)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(labelCostoAsiento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jButton1)))
- .addContainerGap(75, Short.MAX_VALUE))
+ .addGap(99, 99, 99)
+ .addComponent(btnSeleccionarAsiento)
+ .addGap(0, 0, Short.MAX_VALUE)))
+ .addGap(30, 30, 30))
+ .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
- .addGap(10, 10, 10)
- .addComponent(jButton1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel2)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel3)
+ .addContainerGap()
+ .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(26, 26, 26)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel4)
- .addComponent(jLabel7))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel5)
- .addComponent(jLabel8))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel6)
- .addComponent(jLabel9))
- .addGap(26, 26, 26)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel10)
- .addComponent(jLabel13))
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(jLabel7)
+ .addComponent(jLabel9))
+ .addComponent(labelOcupado))
.addGap(18, 18, 18)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(labelDisponible)
+ .addGap(20, 20, 20)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jLabel2)
+ .addComponent(labelZona, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGap(18, 18, 18)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel11)
- .addComponent(jLabel14))
- .addGap(18, 18, 18)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(labelNumeroAsiento, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel12)
- .addComponent(jLabel15))))
- .addContainerGap(19, Short.MAX_VALUE))
+ .addComponent(labelCostoAsiento, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGap(37, 37, 37)
+ .addComponent(btnSeleccionarAsiento)
+ .addGap(128, 128, 128))
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(35, 35, 35))))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
@@ -193,7 +278,8 @@ public class seleccionarBoleto extends javax.swing.JFrame {
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
- .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
@@ -208,24 +294,25 @@ public class seleccionarBoleto extends javax.swing.JFrame {
// Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JButton BtnRegreso;
+ private javax.swing.JButton btnSeleccionarAsiento;
private javax.swing.JButton jButton1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
- private javax.swing.JLabel jLabel13;
- private javax.swing.JLabel jLabel14;
- private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JLabel jLabel5;
- private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
- private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
+ private javax.swing.JPanel jPanel3;
+ private javax.swing.JLabel labelCostoAsiento;
+ private javax.swing.JLabel labelDisponible;
+ private javax.swing.JLabel labelNumeroAsiento;
+ private javax.swing.JLabel labelOcupado;
+ private javax.swing.JLabel labelZona;
+ private javax.swing.JLabel logo1;
+ private javax.swing.JLabel logo2;
+ private javax.swing.JLabel logoimagen;
// End of variables declaration//GEN-END:variables
}