From e391fe69c2028c0d32c32a89cbc92919f0626165 Mon Sep 17 00:00:00 2001 From: Roberto Date: Sun, 10 Mar 2024 22:25:41 -0600 Subject: [PATCH] Avance4.2 --- ventana1.java | 4 ++-- ventana2.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ventana1.java b/ventana1.java index b1cadfb..036c491 100644 --- a/ventana1.java +++ b/ventana1.java @@ -3,7 +3,7 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class ventana1 { - JPanel panel; + JPanel panel,panel2; private JTextField usuariol; private JButton iniciarBoton; private JButton registerBoton; @@ -33,7 +33,7 @@ public class ventana1 { // Mostrar el panel de inicio de sesiĆ³n JFrame principalFrame = new JFrame("Principal"); - principalFrame.setContentPane(new ventana2().panel); + principalFrame.setContentPane(new ventana2().panelV2); principalFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); principalFrame.pack(); principalFrame.setVisible(true); diff --git a/ventana2.java b/ventana2.java index b1a2c35..c9cb1f5 100644 --- a/ventana2.java +++ b/ventana2.java @@ -1,7 +1,7 @@ import javax.swing.*; public class ventana2 { - JPanel panel; + JPanel panelV2; private JButton comprarBoletosButton; private JButton carteleraButton; private JButton cerrarSesiĆ³nButton;