From 6768631f20862d1485ea592ca1892305f69d5a79 Mon Sep 17 00:00:00 2001 From: Frantatita Date: Sat, 9 Mar 2024 00:48:56 -0600 Subject: [PATCH] Avance Interfaz Frank --- src/Vista/registro.form | 235 ++++++++++++++++++++++++++++++++++++++++ src/Vista/registro.java | 230 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 465 insertions(+) create mode 100644 src/Vista/registro.form create mode 100644 src/Vista/registro.java diff --git a/src/Vista/registro.form b/src/Vista/registro.form new file mode 100644 index 0000000..0d65c19 --- /dev/null +++ b/src/Vista/registro.form @@ -0,0 +1,235 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Vista/registro.java b/src/Vista/registro.java new file mode 100644 index 0000000..0c065bc --- /dev/null +++ b/src/Vista/registro.java @@ -0,0 +1,230 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package Vista; + +import java.awt.Image; +import javax.swing.ImageIcon; + +/** + * + * @author reyes + */ +public class registro extends javax.swing.JFrame { + + /** + * Creates new form registro + */ + ImageIcon imagen; + + public registro() { + setTitle("Registro"); + ImageIcon icon = new ImageIcon("C:\\Users\\reyes\\Documents\\ProyectoSalaConciertos\\SalaDeConciertos\\src\\Vista\\Images\\musica.png"); + Image image = icon.getImage(); + this.setIconImage(image); + this.setResizable(false); + this.setLocation(470, 130); + initComponents(); + slogan(); + } + + + + 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)); + } + + + /** + * 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 + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //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(); + jLabel7 = new javax.swing.JLabel(); + txtCorreoRegistro = new javax.swing.JTextField(); + 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(); + 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); + } + }); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + panelRegistro.setBackground(new java.awt.Color(235, 235, 235)); + + logo.setBackground(new java.awt.Color(0, 0, 204)); + logo.setFont(new java.awt.Font("Sitka Text", 1, 18)); // NOI18N + logo.setForeground(new java.awt.Color(102, 102, 102)); + logo.setText("Sala de Conciertos"); + + jLabel6.setBackground(new java.awt.Color(34, 40, 49)); + jLabel6.setText("Nombre de Usuario:"); + + jLabel7.setBackground(new java.awt.Color(34, 40, 49)); + jLabel7.setText("Correo:"); + + 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:"); + + jLabel3.setBackground(new java.awt.Color(34, 40, 49)); + 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); + } + }); + + jPasswordField1.setBackground(new java.awt.Color(230, 230, 230)); + + logoimagen.setText("."); + + javax.swing.GroupLayout panelRegistroLayout = new javax.swing.GroupLayout(panelRegistro); + panelRegistro.setLayout(panelRegistroLayout); + panelRegistroLayout.setHorizontalGroup( + panelRegistroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(panelRegistroLayout.createSequentialGroup() + .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))) + .addGroup(panelRegistroLayout.createSequentialGroup() + .addGap(18, 18, 18) + .addComponent(logoimagen, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(panelRegistroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(panelRegistroLayout.createSequentialGroup() + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .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))))) + .addContainerGap(24, Short.MAX_VALUE)) + ); + panelRegistroLayout.setVerticalGroup( + panelRegistroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(panelRegistroLayout.createSequentialGroup() + .addGroup(panelRegistroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(panelRegistroLayout.createSequentialGroup() + .addGap(72, 72, 72) + .addComponent(jLabel3)) + .addGroup(panelRegistroLayout.createSequentialGroup() + .addContainerGap() + .addGroup(panelRegistroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(logoimagen, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(logo)))) + .addGap(29, 29, 29) + .addComponent(jLabel7) + .addGap(18, 18, 18) + .addComponent(txtCorreoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .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) + .addComponent(jLabel1) + .addGap(18, 18, 18) + .addComponent(jPasswordField1, 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)) + ); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(panelRegistro, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addComponent(panelRegistro, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + + 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.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 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; + // End of variables declaration//GEN-END:variables +}