diff --git a/src/Vista/login.form b/src/Vista/login.form
index aa33540..49eec34 100644
--- a/src/Vista/login.form
+++ b/src/Vista/login.form
@@ -47,7 +47,7 @@
-
+
@@ -63,20 +63,19 @@
-
-
-
-
-
+
+
+
+
-
+
-
+
@@ -110,21 +109,23 @@
-
+
-
+
-
-
+
+
-
-
+
+
+
+
-
-
+
+
@@ -138,6 +139,9 @@
+
+
+
@@ -146,29 +150,29 @@
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
@@ -176,7 +180,7 @@
-
+
@@ -205,6 +209,9 @@
+
+
+
@@ -218,6 +225,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Vista/login.java b/src/Vista/login.java
index c1a7e23..996e29a 100644
--- a/src/Vista/login.java
+++ b/src/Vista/login.java
@@ -31,47 +31,44 @@ public class login extends javax.swing.JFrame {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
- jTextField1 = new javax.swing.JTextField();
- jTextField2 = new javax.swing.JTextField();
- jButton1 = new javax.swing.JButton();
+ txtNombreUsuario = new javax.swing.JTextField();
+ btnLogin = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
+ btnRegistrarse = new javax.swing.JButton();
+ txtContraseñaLogin = new javax.swing.JPasswordField();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setBackground(new java.awt.Color(153, 255, 255));
- jPanel1.setBackground(new java.awt.Color(249, 244, 244));
+ jPanel1.setBackground(new java.awt.Color(235, 235, 235));
jPanel1.setForeground(new java.awt.Color(255, 255, 255));
+ jLabel1.setBackground(new java.awt.Color(34, 40, 49));
jLabel1.setFont(new java.awt.Font("Sitka Text", 0, 18)); // NOI18N
jLabel1.setText("Sala de Conciertos");
+ jLabel2.setBackground(new java.awt.Color(57, 62, 70));
jLabel2.setFont(new java.awt.Font("Segoe UI Variable", 2, 10)); // NOI18N
jLabel2.setText("Un sitio seguro para comprar tus boletos para tus conciertos favoritos");
- jTextField1.setToolTipText("");
- jTextField1.addActionListener(new java.awt.event.ActionListener() {
+ txtNombreUsuario.setBackground(new java.awt.Color(230, 230, 230));
+ txtNombreUsuario.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
- jTextField1ActionPerformed(evt);
+ txtNombreUsuarioActionPerformed(evt);
}
});
- jTextField2.addActionListener(new java.awt.event.ActionListener() {
+ 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) {
- jTextField2ActionPerformed(evt);
- }
- });
-
- jButton1.setBackground(new java.awt.Color(0, 0, 204));
- jButton1.setForeground(new java.awt.Color(255, 255, 255));
- jButton1.setText("Iniciar Sesion");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
+ btnLoginActionPerformed(evt);
}
});
@@ -84,12 +81,24 @@ public class login extends javax.swing.JFrame {
jLabel5.setFont(new java.awt.Font("Centaur", 0, 12)); // NOI18N
jLabel5.setText("Terminos");
+ jLabel6.setBackground(new java.awt.Color(34, 40, 49));
jLabel6.setText("Nombre de Usuario:");
jLabel7.setText("Contraseña:");
jLabel8.setText("Icono");
+ 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));
+
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
@@ -100,16 +109,16 @@ public class login extends javax.swing.JFrame {
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
- .addComponent(jTextField1)
- .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE))
- .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING))
- .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)))
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
+ .addComponent(btnLogin, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
+ .addComponent(btnRegistrarse, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
+ .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(txtContraseñaLogin, javax.swing.GroupLayout.Alignment.LEADING))
+ .addComponent(txtNombreUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(178, 178, 178)
.addComponent(jLabel3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
.addComponent(jLabel4)
.addGap(37, 37, 37)
.addComponent(jLabel5)
@@ -134,21 +143,23 @@ public class login extends javax.swing.JFrame {
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(14, 14, 14)
.addComponent(jLabel8)
- .addGap(18, 18, 18)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel2)
- .addGap(27, 27, 27)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel6)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(txtNombreUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(18, 18, 18)
.addComponent(jLabel7)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(12, 12, 12)
+ .addComponent(txtContraseñaLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(18, 18, 18)
+ .addComponent(btnLogin)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jButton1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)
+ .addComponent(btnRegistrarse)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(jLabel4)
@@ -176,55 +187,26 @@ public class login extends javax.swing.JFrame {
pack();
}// //GEN-END:initComponents
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
+ private void btnLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLoginActionPerformed
// TODO add your handling code here:
- }//GEN-LAST:event_jButton1ActionPerformed
+ }//GEN-LAST:event_btnLoginActionPerformed
- private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
+ private void txtNombreUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtNombreUsuarioActionPerformed
// TODO add your handling code here:
- }//GEN-LAST:event_jTextField1ActionPerformed
+ }//GEN-LAST:event_txtNombreUsuarioActionPerformed
- private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField2ActionPerformed
+ private void btnRegistrarseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRegistrarseActionPerformed
// TODO add your handling code here:
- }//GEN-LAST:event_jTextField2ActionPerformed
+ }//GEN-LAST:event_btnRegistrarseActionPerformed
/**
* @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(login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (InstantiationException ex) {
- java.util.logging.Logger.getLogger(login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (IllegalAccessException ex) {
- java.util.logging.Logger.getLogger(login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (javax.swing.UnsupportedLookAndFeelException ex) {
- java.util.logging.Logger.getLogger(login.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 login().setVisible(true);
- }
- });
- }
+
// Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
+ private javax.swing.JButton btnLogin;
+ private javax.swing.JButton btnRegistrarse;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
@@ -234,7 +216,7 @@ public class login extends javax.swing.JFrame {
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JPanel jPanel1;
- private javax.swing.JTextField jTextField1;
- private javax.swing.JTextField jTextField2;
+ private javax.swing.JPasswordField txtContraseñaLogin;
+ private javax.swing.JTextField txtNombreUsuario;
// End of variables declaration//GEN-END:variables
}