From b90b93fe16646b031dbea5e4ad5a0a954547c549 Mon Sep 17 00:00:00 2001 From: xFractu Date: Sun, 17 Mar 2024 16:31:25 -0600 Subject: [PATCH] avance 8 --- .../src/Vista/MenuConciertos.form | 127 +++++++++++++++++- .../src/Vista/MenuConciertos.java | 112 ++++++++++++++- 2 files changed, 226 insertions(+), 13 deletions(-) diff --git a/ProyectoConciertoApp/src/Vista/MenuConciertos.form b/ProyectoConciertoApp/src/Vista/MenuConciertos.form index dc2be1a..f80d91c 100644 --- a/ProyectoConciertoApp/src/Vista/MenuConciertos.form +++ b/ProyectoConciertoApp/src/Vista/MenuConciertos.form @@ -6,7 +6,7 @@ - + @@ -38,7 +38,7 @@ - + @@ -47,7 +47,7 @@ - + @@ -66,15 +66,110 @@ - + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -83,15 +178,33 @@ - + + + + + - + + + + + + + + + + + + + + + diff --git a/ProyectoConciertoApp/src/Vista/MenuConciertos.java b/ProyectoConciertoApp/src/Vista/MenuConciertos.java index ceba8df..4531259 100644 --- a/ProyectoConciertoApp/src/Vista/MenuConciertos.java +++ b/ProyectoConciertoApp/src/Vista/MenuConciertos.java @@ -4,6 +4,10 @@ */ package Vista; +import java.awt.Image; +import javax.swing.ImageIcon; +import javax.swing.JLabel; + /** * * @author mario @@ -29,42 +33,118 @@ public class MenuConciertos extends javax.swing.JFrame { MenuP = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); Principal = new javax.swing.JPanel(); + jPanel2 = new javax.swing.JPanel(); + jLabel2 = new javax.swing.JLabel(); + jPanel3 = new javax.swing.JPanel(); + jLabel3 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); + jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); + jPanel2.setBackground(new java.awt.Color(153, 0, 51)); + + jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/the_weeknd.jpg"))); // NOI18N + jLabel2.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel2MouseClicked(evt); + } + }); + + javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); + jPanel2.setLayout(jPanel2Layout); + jPanel2Layout.setHorizontalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + jPanel2Layout.setVerticalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + + jPanel3.setBackground(new java.awt.Color(39, 43, 44)); + + jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/lady_gaga.jpg"))); // NOI18N + jLabel3.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel3MouseClicked(evt); + } + }); + + javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); + jPanel3.setLayout(jPanel3Layout); + jPanel3Layout.setHorizontalGroup( + jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel3Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + jPanel3Layout.setVerticalGroup( + jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel3Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addContainerGap()) + ); + javax.swing.GroupLayout PrincipalLayout = new javax.swing.GroupLayout(Principal); Principal.setLayout(PrincipalLayout); PrincipalLayout.setHorizontalGroup( PrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 1188, Short.MAX_VALUE) + .addGroup(PrincipalLayout.createSequentialGroup() + .addContainerGap() + .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 151, Short.MAX_VALUE) + .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(31, 31, 31)) ); PrincipalLayout.setVerticalGroup( PrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 759, Short.MAX_VALUE) + .addGroup(PrincipalLayout.createSequentialGroup() + .addGap(14, 14, 14) + .addGroup(PrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addContainerGap(245, Short.MAX_VALUE)) ); jScrollPane1.setViewportView(Principal); + jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 48)); // NOI18N + jLabel1.setText("Conciertos"); + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 0, Short.MAX_VALUE) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 347, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 106, Short.MAX_VALUE) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE) + .addContainerGap()) ); javax.swing.GroupLayout MenuPLayout = new javax.swing.GroupLayout(MenuP); MenuP.setLayout(MenuPLayout); MenuPLayout.setHorizontalGroup( MenuPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1200, Short.MAX_VALUE) + .addComponent(jScrollPane1) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); MenuPLayout.setVerticalGroup( @@ -72,7 +152,7 @@ public class MenuConciertos extends javax.swing.JFrame { .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPLayout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 761, Short.MAX_VALUE)) + .addComponent(jScrollPane1)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); @@ -87,8 +167,22 @@ public class MenuConciertos extends javax.swing.JFrame { ); pack(); + setLocationRelativeTo(null); }// //GEN-END:initComponents + private void jLabel2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel2MouseClicked + VentanaConciertos ventana = new VentanaConciertos("The Weeknd"); + ventana.setVisible(true); + this.dispose(); + }//GEN-LAST:event_jLabel2MouseClicked + + private void jLabel3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel3MouseClicked + // TODO add your handling code here: + VentanaConciertos ventana = new VentanaConciertos("Lady Gaga"); + ventana.setVisible(true); + this.dispose(); + }//GEN-LAST:event_jLabel3MouseClicked + /** * @param args the command line arguments */ @@ -124,11 +218,17 @@ public class MenuConciertos extends javax.swing.JFrame { } }); } + // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JPanel MenuP; private javax.swing.JPanel Principal; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanel2; + private javax.swing.JPanel jPanel3; private javax.swing.JScrollPane jScrollPane1; // End of variables declaration//GEN-END:variables }