Avance4.2

This commit is contained in:
Roberto 2024-03-10 22:25:41 -06:00
parent 70f60810d0
commit e391fe69c2
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
public class ventana1 { public class ventana1 {
JPanel panel; JPanel panel,panel2;
private JTextField usuariol; private JTextField usuariol;
private JButton iniciarBoton; private JButton iniciarBoton;
private JButton registerBoton; private JButton registerBoton;
@ -33,7 +33,7 @@ public class ventana1 {
// Mostrar el panel de inicio de sesión // Mostrar el panel de inicio de sesión
JFrame principalFrame = new JFrame("Principal"); JFrame principalFrame = new JFrame("Principal");
principalFrame.setContentPane(new ventana2().panel); principalFrame.setContentPane(new ventana2().panelV2);
principalFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); principalFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
principalFrame.pack(); principalFrame.pack();
principalFrame.setVisible(true); principalFrame.setVisible(true);

View File

@ -1,7 +1,7 @@
import javax.swing.*; import javax.swing.*;
public class ventana2 { public class ventana2 {
JPanel panel; JPanel panelV2;
private JButton comprarBoletosButton; private JButton comprarBoletosButton;
private JButton carteleraButton; private JButton carteleraButton;
private JButton cerrarSesiónButton; private JButton cerrarSesiónButton;