From 6b2bf57948d9a8fc02bdf89faf4598c869523498 Mon Sep 17 00:00:00 2001 From: Frantatita Date: Sat, 9 Mar 2024 14:20:46 -0600 Subject: [PATCH] Avance Interfaz V.Final 1.1 --- src/Vista/confirmacionPago.form | 127 ++++++++++++++------------- src/Vista/confirmacionPago.java | 149 ++++++++++++++------------------ 2 files changed, 127 insertions(+), 149 deletions(-) diff --git a/src/Vista/confirmacionPago.form b/src/Vista/confirmacionPago.form index 6ac2300..587b25c 100644 --- a/src/Vista/confirmacionPago.form +++ b/src/Vista/confirmacionPago.form @@ -46,47 +46,50 @@ - + + + + - - - - - + + - + - + + + + + + + - - - - - - - - - - - - - + + + + + + @@ -94,35 +97,28 @@ - + + + - + - + - - - + - - + + - - - - - - - - @@ -144,33 +140,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -181,6 +150,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Vista/confirmacionPago.java b/src/Vista/confirmacionPago.java index 67ae583..bff96fc 100644 --- a/src/Vista/confirmacionPago.java +++ b/src/Vista/confirmacionPago.java @@ -4,6 +4,9 @@ */ package Vista; +import java.awt.Image; +import javax.swing.ImageIcon; + /** * * @author reyes @@ -13,8 +16,23 @@ public class confirmacionPago extends javax.swing.JFrame { /** * Creates new form confirmacionPago */ + ImageIcon imagen; + public confirmacionPago() { initComponents(); + 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); + setTitle("Confirmacion Pago"); + this.setLocationRelativeTo(null); + slogan(); + } + + public void slogan() { + imagen = new ImageIcon("C:\\Users\\reyes\\Documents\\ProyectoSalaConciertos\\SalaDeConciertos\\src\\Vista\\Images\\musicas.png"); + imagenLogo.setIcon(imagen); + //logoimagen.setPreferredSize(new Dimension(150, 120)); } /** @@ -28,23 +46,20 @@ public class confirmacionPago extends javax.swing.JFrame { jLabel4 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); - jLabel6 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); - jButton1 = new javax.swing.JButton(); - jButton2 = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); + logo2 = new javax.swing.JLabel(); + imagenLogo = new javax.swing.JLabel(); + menu = new javax.swing.JButton(); jLabel4.setText("jLabel4"); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - jPanel1.setBackground(new java.awt.Color(255, 255, 255)); - - jLabel6.setFont(new java.awt.Font("Sitka Text", 0, 18)); // NOI18N - jLabel6.setText("Sala de Conciertos"); + jPanel1.setBackground(new java.awt.Color(235, 235, 235)); jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N jLabel1.setText("Pago Exitoso"); @@ -54,75 +69,74 @@ public class confirmacionPago extends javax.swing.JFrame { jLabel3.setFont(new java.awt.Font("Segoe UI", 2, 12)); // NOI18N jLabel3.setText("manuel23anel@gmail.com"); - jButton1.setBackground(new java.awt.Color(0, 0, 204)); - jButton1.setForeground(new java.awt.Color(255, 255, 255)); - jButton1.setText("Inicio"); - jButton1.setBorderPainted(false); - - jButton2.setBackground(new java.awt.Color(204, 0, 0)); - jButton2.setForeground(new java.awt.Color(255, 255, 255)); - jButton2.setText("Cerrar Sesion"); - jButton2.setBorderPainted(false); - jButton2.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jButton2ActionPerformed(evt); - } - }); - jLabel5.setText("Para aclaraciones comunicarse con:"); jLabel7.setText("SSporteConciertos@gmail.com"); + 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"); + + imagenLogo.setText("."); + + menu.setBackground(new java.awt.Color(51, 51, 51)); + menu.setForeground(new java.awt.Color(255, 255, 255)); + menu.setText("Menu Principal"); + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() + .addGap(51, 51, 51) + .addComponent(imagenLogo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(logo2) + .addGap(18, 18, 18)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(43, 43, 43) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(jLabel6) - .addComponent(jLabel1))) + .addGap(87, 87, 87) + .addComponent(jLabel1)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(69, 69, 69) .addComponent(jLabel3)) .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(48, 48, 48) + .addGap(51, 51, 51) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(jLabel5) - .addComponent(jLabel2))) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(62, 62, 62) - .addComponent(jLabel7)) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(108, 108, 108) - .addComponent(jButton1)) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(95, 95, 95) - .addComponent(jButton2))) - .addContainerGap(52, Short.MAX_VALUE)) + .addComponent(jLabel2) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel5) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(20, 20, 20) + .addComponent(jLabel7)))))) + .addContainerGap(59, Short.MAX_VALUE)) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(menu) + .addGap(86, 86, 86)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(33, 33, 33) - .addComponent(jLabel6) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(logo2) + .addComponent(imagenLogo)) .addGap(18, 18, 18) .addComponent(jLabel1) - .addGap(32, 32, 32) + .addGap(38, 38, 38) .addComponent(jLabel2) - .addGap(18, 18, 18) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel3) .addGap(35, 35, 35) .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jLabel7) - .addGap(34, 34, 34) - .addComponent(jButton1) + .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27) - .addComponent(jButton2) - .addContainerGap(58, Short.MAX_VALUE)) + .addComponent(menu) + .addContainerGap(99, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); @@ -141,55 +155,20 @@ public class confirmacionPago extends javax.swing.JFrame { pack(); }// //GEN-END:initComponents - private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed - // 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(confirmacionPago.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (InstantiationException ex) { - java.util.logging.Logger.getLogger(confirmacionPago.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (IllegalAccessException ex) { - java.util.logging.Logger.getLogger(confirmacionPago.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (javax.swing.UnsupportedLookAndFeelException ex) { - java.util.logging.Logger.getLogger(confirmacionPago.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 confirmacionPago().setVisible(true); - } - }); - } // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JButton jButton1; - private javax.swing.JButton jButton2; + private javax.swing.JLabel imagenLogo; private javax.swing.JLabel jLabel1; 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.JPanel jPanel1; + private javax.swing.JLabel logo2; + private javax.swing.JButton menu; // End of variables declaration//GEN-END:variables }