From 03b14e2c374a9cb245d5975037519943631d981c Mon Sep 17 00:00:00 2001 From: Soka_jplr Date: Sun, 10 Mar 2024 16:36:47 -0600 Subject: [PATCH] controladores --- nbproject/private/private.properties | 2 +- nbproject/private/private.xml | 13 +-- src/Vista/confirmacionPago.java | 4 +- src/Vista/login.form | 9 -- src/Vista/login.java | 55 ++++++----- src/Vista/metodoPago.form | 4 +- src/Vista/metodoPago.java | 42 +-------- src/Vista/registro.form | 66 +++++-------- src/Vista/registro.java | 133 ++++++++++++--------------- src/Vista/salaPrincipal.form | 24 ++--- src/Vista/salaPrincipal.java | 8 +- src/Vista/seleccionarBoleto.java | 5 +- 12 files changed, 142 insertions(+), 223 deletions(-) diff --git a/nbproject/private/private.properties b/nbproject/private/private.properties index 3225732..45c01e2 100644 --- a/nbproject/private/private.properties +++ b/nbproject/private/private.properties @@ -1,2 +1,2 @@ compile.on.save=true -user.properties.file=C:\\Users\\reyes\\AppData\\Roaming\\NetBeans\\18\\build.properties +user.properties.file=C:\\Users\\juanl\\AppData\\Roaming\\NetBeans\\19\\build.properties diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml index a03cdf3..928b901 100644 --- a/nbproject/private/private.xml +++ b/nbproject/private/private.xml @@ -3,12 +3,13 @@ - file:/C:/Users/reyes/Documents/ProyectoSalaConciertos/SalaDeConciertos/src/Vista/Vista.java - file:/C:/Users/reyes/Documents/ProyectoSalaConciertos/SalaDeConciertos/src/Vista/metodoPago.java - file:/C:/Users/reyes/Documents/ProyectoSalaConciertos/SalaDeConciertos/src/Vista/seleccionarBoleto.java - file:/C:/Users/reyes/Documents/ProyectoSalaConciertos/SalaDeConciertos/src/Vista/confirmacionPago.java - file:/C:/Users/reyes/Documents/ProyectoSalaConciertos/SalaDeConciertos/src/Vista/salaPrincipal.java - file:/C:/Users/reyes/Documents/ProyectoSalaConciertos/SalaDeConciertos/src/Vista/login.java + file:/C:/Users/juanl/Documents/SalaDeConciertos/src/Vista/MetodoPago.java + file:/C:/Users/juanl/Documents/SalaDeConciertos/src/Controlador/ControladorLogin.java + file:/C:/Users/juanl/Documents/SalaDeConciertos/src/Vista/Login.java + file:/C:/Users/juanl/Documents/SalaDeConciertos/src/Vista/SalaPrincipal.java + file:/C:/Users/juanl/Documents/SalaDeConciertos/src/Modelo/Consulta.java + file:/C:/Users/juanl/Documents/SalaDeConciertos/src/Vista/seleccionarBoleto.java + file:/C:/Users/juanl/Documents/SalaDeConciertos/src/Controlador/ControladorRegistro.java diff --git a/src/Vista/confirmacionPago.java b/src/Vista/confirmacionPago.java index bff96fc..1ba4b72 100644 --- a/src/Vista/confirmacionPago.java +++ b/src/Vista/confirmacionPago.java @@ -11,14 +11,14 @@ import javax.swing.ImageIcon; * * @author reyes */ -public class confirmacionPago extends javax.swing.JFrame { +public class ConfirmacionPago extends javax.swing.JFrame { /** * Creates new form confirmacionPago */ ImageIcon imagen; - public confirmacionPago() { + public ConfirmacionPago() { initComponents(); ImageIcon icon = new ImageIcon("C:\\Users\\reyes\\Documents\\ProyectoSalaConciertos\\SalaDeConciertos\\src\\Vista\\Images\\musica.png"); Image image = icon.getImage(); diff --git a/src/Vista/login.form b/src/Vista/login.form index 49eec34..23d1030 100644 --- a/src/Vista/login.form +++ b/src/Vista/login.form @@ -165,9 +165,6 @@ - - - @@ -179,9 +176,6 @@ - - - @@ -235,9 +229,6 @@ - - - diff --git a/src/Vista/login.java b/src/Vista/login.java index 996e29a..9a45128 100644 --- a/src/Vista/login.java +++ b/src/Vista/login.java @@ -4,21 +4,45 @@ */ package Vista; +import Controlador.ControladorLogin; +import javax.swing.JButton; +import javax.swing.JPasswordField; +import javax.swing.JTextField; + /** * * @author reyes */ -public class login extends javax.swing.JFrame { +public class Login extends javax.swing.JFrame { /** * Creates new form login */ - public login() { + ControladorLogin contorlador = new ControladorLogin(this); + public Login() { initComponents(); setTitle("Inicio Sesion"); setResizable(false); + btnLogin.addActionListener(contorlador); + btnRegistrarse.addActionListener(contorlador); } + public JButton getBtnLogin() { + return btnLogin; + } + + public JButton getBtnRegistrarse() { + return btnRegistrarse; + } + + public JPasswordField getTxtContraseñaLogin() { + return txtContraseñaLogin; + } + + public JTextField getTxtNombreUsuario() { + return txtNombreUsuario; + } + /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always @@ -57,20 +81,10 @@ public class login extends javax.swing.JFrame { jLabel2.setText("Un sitio seguro para comprar tus boletos para tus conciertos favoritos"); txtNombreUsuario.setBackground(new java.awt.Color(230, 230, 230)); - txtNombreUsuario.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - txtNombreUsuarioActionPerformed(evt); - } - }); btnLogin.setBackground(new java.awt.Color(51, 51, 51)); btnLogin.setForeground(new java.awt.Color(255, 255, 255)); btnLogin.setText("Iniciar Sesion"); - btnLogin.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - btnLoginActionPerformed(evt); - } - }); jLabel3.setFont(new java.awt.Font("Centaur", 0, 12)); // NOI18N jLabel3.setText("Ayuda"); @@ -91,11 +105,6 @@ public class login extends javax.swing.JFrame { btnRegistrarse.setBackground(new java.awt.Color(51, 51, 51)); btnRegistrarse.setForeground(new java.awt.Color(255, 255, 255)); btnRegistrarse.setText("Registrarse"); - btnRegistrarse.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - btnRegistrarseActionPerformed(evt); - } - }); txtContraseñaLogin.setBackground(new java.awt.Color(230, 230, 230)); @@ -187,18 +196,6 @@ public class login extends javax.swing.JFrame { pack(); }// //GEN-END:initComponents - private void btnLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLoginActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_btnLoginActionPerformed - - private void txtNombreUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtNombreUsuarioActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_txtNombreUsuarioActionPerformed - - private void btnRegistrarseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRegistrarseActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_btnRegistrarseActionPerformed - /** * @param args the command line arguments */ diff --git a/src/Vista/metodoPago.form b/src/Vista/metodoPago.form index 4ff613b..90ec4bc 100644 --- a/src/Vista/metodoPago.form +++ b/src/Vista/metodoPago.form @@ -28,7 +28,7 @@ - + @@ -85,7 +85,7 @@ - + diff --git a/src/Vista/metodoPago.java b/src/Vista/metodoPago.java index 87883b7..1e9d815 100644 --- a/src/Vista/metodoPago.java +++ b/src/Vista/metodoPago.java @@ -8,12 +8,12 @@ package Vista; * * @author reyes */ -public class metodoPago extends javax.swing.JFrame { +public class MetodoPago extends javax.swing.JFrame { /** * Creates new form metodoPago */ - public metodoPago() { + public MetodoPago() { initComponents(); } @@ -133,7 +133,7 @@ public class metodoPago extends javax.swing.JFrame { .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 229, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 229, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 229, javax.swing.GroupLayout.PREFERRED_SIZE)))) - .addContainerGap(33, Short.MAX_VALUE)) + .addContainerGap(29, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() @@ -191,7 +191,7 @@ public class metodoPago extends javax.swing.JFrame { layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() - .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); layout.setVerticalGroup( @@ -216,40 +216,6 @@ public class metodoPago extends javax.swing.JFrame { // TODO add your handling code here: }//GEN-LAST:event_jButton2ActionPerformed - /** - * @param args the command line arguments - */ - public static void main(String args[]) { - /* Set the Nimbus look and feel */ - // - /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. - * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html - */ - try { - for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { - if ("Nimbus".equals(info.getName())) { - javax.swing.UIManager.setLookAndFeel(info.getClassName()); - break; - } - } - } catch (ClassNotFoundException ex) { - java.util.logging.Logger.getLogger(metodoPago.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (InstantiationException ex) { - java.util.logging.Logger.getLogger(metodoPago.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (IllegalAccessException ex) { - java.util.logging.Logger.getLogger(metodoPago.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (javax.swing.UnsupportedLookAndFeelException ex) { - java.util.logging.Logger.getLogger(metodoPago.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } - // - - /* Create and display the form */ - java.awt.EventQueue.invokeLater(new Runnable() { - public void run() { - new metodoPago().setVisible(true); - } - }); - } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; diff --git a/src/Vista/registro.form b/src/Vista/registro.form index 0d65c19..8ff9830 100644 --- a/src/Vista/registro.form +++ b/src/Vista/registro.form @@ -1,19 +1,6 @@
- - - - - - - - - - - - - @@ -67,18 +54,7 @@ - - - - - - - - - - - - + @@ -94,6 +70,18 @@ + + + + + + + + + + + + @@ -123,13 +111,15 @@ - + + + - + - - + + @@ -172,9 +162,6 @@ - - - @@ -183,9 +170,6 @@ - - - @@ -203,7 +187,7 @@ - + @@ -213,11 +197,8 @@ - - - - + @@ -225,9 +206,8 @@ - - - + + diff --git a/src/Vista/registro.java b/src/Vista/registro.java index 0c065bc..0b5a27f 100644 --- a/src/Vista/registro.java +++ b/src/Vista/registro.java @@ -4,37 +4,64 @@ */ package Vista; +import Controlador.ControladorRegistro; import java.awt.Image; import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JLabel; +import javax.swing.JPasswordField; +import javax.swing.JTextField; /** * * @author reyes */ -public class registro extends javax.swing.JFrame { +public class Registro extends javax.swing.JFrame { /** * Creates new form registro */ ImageIcon imagen; - public registro() { + public Registro() { setTitle("Registro"); - ImageIcon icon = new ImageIcon("C:\\Users\\reyes\\Documents\\ProyectoSalaConciertos\\SalaDeConciertos\\src\\Vista\\Images\\musica.png"); + ImageIcon icon = new ImageIcon("src\\Images\\music.png"); Image image = icon.getImage(); this.setIconImage(image); this.setResizable(false); this.setLocation(470, 130); initComponents(); + ControladorRegistro controlador = new ControladorRegistro(this); slogan(); } + public JButton getBtnRegistrar() { + return btnRegistrar; + } + + public JTextField getTxtCorreoRegistro() { + return txtCorreoRegistro; + } + + public JTextField getTxtNombreUsuarioRegistro() { + return txtNombreUsuarioRegistro; + } + + public JPasswordField getTxtPassword() { + return txtPassword; + } + + public JLabel getLabelName() { + return labelName; + } public void slogan() { - imagen = new ImageIcon("C:\\Users\\reyes\\Documents\\ProyectoSalaConciertos\\SalaDeConciertos\\src\\Vista\\Images\\musicas.png"); - logoimagen.setIcon(imagen); - //logoimagen.setPreferredSize(new Dimension(150, 120)); + ImageIcon imagenIcon = new ImageIcon("src\\Images\\music.png"); + Image imagenOriginal = imagenIcon.getImage(); + Image imagenEscalada = imagenOriginal.getScaledInstance(60,60, Image.SCALE_SMOOTH); // Ajusta el tamaño a 300x300 píxeles + ImageIcon imagenFinal = new ImageIcon(imagenEscalada); + logoimagen.setIcon(imagenFinal); } @@ -47,7 +74,6 @@ public class registro extends javax.swing.JFrame { // //GEN-BEGIN:initComponents private void initComponents() { - txtContraseña1 = new javax.swing.JTextField(); panelRegistro = new javax.swing.JPanel(); logo = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); @@ -56,17 +82,10 @@ public class registro extends javax.swing.JFrame { txtNombreUsuarioRegistro = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); - jButton2 = new javax.swing.JButton(); - jPasswordField1 = new javax.swing.JPasswordField(); + btnRegistrar = new javax.swing.JButton(); + txtPassword = new javax.swing.JPasswordField(); logoimagen = new javax.swing.JLabel(); - - txtContraseña1.setBackground(new java.awt.Color(230, 230, 230)); - txtContraseña1.setToolTipText(""); - txtContraseña1.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - txtContraseña1ActionPerformed(evt); - } - }); + labelName = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); @@ -85,19 +104,9 @@ public class registro extends javax.swing.JFrame { txtCorreoRegistro.setBackground(new java.awt.Color(230, 230, 230)); txtCorreoRegistro.setToolTipText(""); - txtCorreoRegistro.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - txtCorreoRegistroActionPerformed(evt); - } - }); txtNombreUsuarioRegistro.setBackground(new java.awt.Color(230, 230, 230)); txtNombreUsuarioRegistro.setToolTipText(""); - txtNombreUsuarioRegistro.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - txtNombreUsuarioRegistroActionPerformed(evt); - } - }); jLabel1.setText("Contraseña:"); @@ -105,18 +114,11 @@ public class registro extends javax.swing.JFrame { jLabel3.setFont(new java.awt.Font("Microsoft YaHei", 0, 18)); // NOI18N jLabel3.setText("Registro"); - jButton2.setBackground(new java.awt.Color(51, 51, 51)); - jButton2.setForeground(new java.awt.Color(255, 255, 255)); - jButton2.setText("Registrarse"); - jButton2.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jButton2ActionPerformed(evt); - } - }); + btnRegistrar.setBackground(new java.awt.Color(51, 51, 51)); + btnRegistrar.setForeground(new java.awt.Color(255, 255, 255)); + btnRegistrar.setText("Registrarse"); - jPasswordField1.setBackground(new java.awt.Color(230, 230, 230)); - - logoimagen.setText("."); + txtPassword.setBackground(new java.awt.Color(230, 230, 230)); javax.swing.GroupLayout panelRegistroLayout = new javax.swing.GroupLayout(panelRegistro); panelRegistro.setLayout(panelRegistroLayout); @@ -126,16 +128,7 @@ public class registro extends javax.swing.JFrame { .addGroup(panelRegistroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(panelRegistroLayout.createSequentialGroup() .addGap(66, 66, 66) - .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGroup(panelRegistroLayout.createSequentialGroup() - .addGap(30, 30, 30) - .addGroup(panelRegistroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(jLabel6) - .addComponent(jLabel1) - .addComponent(txtNombreUsuarioRegistro) - .addComponent(jLabel7) - .addComponent(txtCorreoRegistro) - .addComponent(jPasswordField1, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE))) + .addComponent(btnRegistrar, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(panelRegistroLayout.createSequentialGroup() .addGap(18, 18, 18) .addComponent(logoimagen, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE) @@ -145,7 +138,17 @@ public class registro extends javax.swing.JFrame { .addComponent(jLabel3)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelRegistroLayout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(logo))))) + .addComponent(logo)))) + .addGroup(panelRegistroLayout.createSequentialGroup() + .addGap(30, 30, 30) + .addGroup(panelRegistroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(jLabel6) + .addComponent(jLabel1) + .addComponent(txtNombreUsuarioRegistro) + .addComponent(jLabel7) + .addComponent(txtCorreoRegistro) + .addComponent(txtPassword) + .addComponent(labelName, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(24, Short.MAX_VALUE)) ); panelRegistroLayout.setVerticalGroup( @@ -168,13 +171,15 @@ public class registro extends javax.swing.JFrame { .addComponent(jLabel6) .addGap(18, 18, 18) .addComponent(txtNombreUsuarioRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) + .addGap(5, 5, 5) + .addComponent(labelName, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel1) .addGap(18, 18, 18) - .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(33, 33, 33) - .addComponent(jButton2) - .addContainerGap(53, Short.MAX_VALUE)) + .addComponent(btnRegistrar) + .addContainerGap(38, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); @@ -196,35 +201,19 @@ public class registro extends javax.swing.JFrame { pack(); }// //GEN-END:initComponents - private void txtContraseña1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtContraseña1ActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_txtContraseña1ActionPerformed - - private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_jButton2ActionPerformed - - private void txtNombreUsuarioRegistroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtNombreUsuarioRegistroActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_txtNombreUsuarioRegistroActionPerformed - - private void txtCorreoRegistroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCorreoRegistroActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_txtCorreoRegistroActionPerformed - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JButton jButton2; + private javax.swing.JButton btnRegistrar; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; - private javax.swing.JPasswordField jPasswordField1; + private javax.swing.JLabel labelName; private javax.swing.JLabel logo; private javax.swing.JLabel logoimagen; private javax.swing.JPanel panelRegistro; - private javax.swing.JTextField txtContraseña1; private javax.swing.JTextField txtCorreoRegistro; private javax.swing.JTextField txtNombreUsuarioRegistro; + private javax.swing.JPasswordField txtPassword; // End of variables declaration//GEN-END:variables } diff --git a/src/Vista/salaPrincipal.form b/src/Vista/salaPrincipal.form index e1f13de..4e55b8d 100644 --- a/src/Vista/salaPrincipal.form +++ b/src/Vista/salaPrincipal.form @@ -197,27 +197,19 @@ + + + + + - - - - - - - - - - - + + - - - - - + diff --git a/src/Vista/salaPrincipal.java b/src/Vista/salaPrincipal.java index 59d354f..a8e7f56 100644 --- a/src/Vista/salaPrincipal.java +++ b/src/Vista/salaPrincipal.java @@ -4,6 +4,7 @@ */ package Vista; +import Modelo.Usuario; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; @@ -19,14 +20,15 @@ import javax.swing.JButton; * * @author reyes */ -public class salaPrincipal extends javax.swing.JFrame { +public class SalaPrincipal extends javax.swing.JFrame { /** * Creates new form salaPrincipal */ ImageIcon imagen; - - public salaPrincipal() { + Usuario user; + public SalaPrincipal(Usuario user) { + this.user = user; initComponents(); setTitle("Sala Principal"); setLocationRelativeTo(null); diff --git a/src/Vista/seleccionarBoleto.java b/src/Vista/seleccionarBoleto.java index 0dc7595..1e23bc3 100644 --- a/src/Vista/seleccionarBoleto.java +++ b/src/Vista/seleccionarBoleto.java @@ -3,9 +3,9 @@ package Vista; * * @author reyes */ -public class SeleccionarBoleto extends javax.swing.JFrame { +public class seleccionarBoleto extends javax.swing.JFrame { - public SeleccionarBoleto() { + public seleccionarBoleto() { initComponents(); } @@ -33,6 +33,7 @@ public class SeleccionarBoleto extends javax.swing.JFrame { jButton1 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + setMaximumSize(new java.awt.Dimension(32767, 32767)); jPanel1.setBackground(new java.awt.Color(249, 244, 244));