From e55d245551b14b16626fb27d584daaecbecef298 Mon Sep 17 00:00:00 2001 From: Roberto Date: Mon, 11 Mar 2024 07:25:01 -0600 Subject: [PATCH 1/2] Avance4.5 --- out/production/mezontleTeam/ventana1$1.class | Bin 2012 -> 2012 bytes out/production/mezontleTeam/ventana1$2.class | Bin 1246 -> 1648 bytes out/production/mezontleTeam/ventana1.class | Bin 4829 -> 4829 bytes ventana2.java | 27 +++++++++++++++++++ 4 files changed, 27 insertions(+) diff --git a/out/production/mezontleTeam/ventana1$1.class b/out/production/mezontleTeam/ventana1$1.class index 9871314aaea3391f85ec7ff355462c8695522ff6..542a2c1c21379ac6730d23b53032b1c53a790cb7 100644 GIT binary patch delta 75 zcmcb^e}{iVFdL)rf8(a diff --git a/out/production/mezontleTeam/ventana1$2.class b/out/production/mezontleTeam/ventana1$2.class index 8d88370e3173ce5aeb9d803caa155ee87ef54a75..38d86afc64ecc5cdd27a2fddfd30672e87aea163 100644 GIT binary patch delta 714 zcmZ8f+int36kP{qK*lLzQ)rsj#P|fJ4N0lAg-Tlm1;r{CrxkBZ=@h1nOe15P_=3M+ z_>x95F@5j@{0I~Oz$YJ#Yes{{NoHTpUVHC#_C8-D-&N(y&-2d!w$VRRl)xy1l`w9o z$YNC>cBG%^Y5mkmH*MSMn~uQcuHh7oL;a2AOwMMKsp|j8yn+nYRpgKtm|{|+^V%>5 z4fCxbkoY&DXudKAL(?AQBe*$2A&gBGTi6zuo)n#61VTN-?Doh+REWoI6-5s#pPC0w zPr)4SsJM%=KzPWeemgl?siZV7c2C89R0ZOURqc-Mux;J2s85WhEin83TO#8lcT_xt zDj*%}oxYb^Q&C4lKw+w84$Xaw7m<>!lorP055>SGarMHnK5%r)(gkMz4rIbTKduGq zvrULt3^GC-dVv2$XwTj7Pzqvtssk~Z~%j}3%KU(ocAkX-rFeWAmPxb)J2b4Vuc7y|0IedYK2w33G({| D_JD^6 delta 357 zcmYL^OHKko7=*tb29S1wL=zJd+_=&qr~yR=e81mu#X?qSSP)&9;2sa)j#QmhlYkee>qllBMjiO2uG1 zt%rKM)4slI>2~gFzMiD|(uhr%-jjRT4KSGuaT0QKw8yCl*Tgo2VaNLUSB(EgvL9*I zRTCK11!-VCR1yuk5 delta 26 hcmcbsdRKJ=4==AE0}F!?gE)g8gBpYFW=Y;7tN>BY1xx?{ diff --git a/ventana2.java b/ventana2.java index 53aeb4c..f80cc1f 100644 --- a/ventana2.java +++ b/ventana2.java @@ -1,4 +1,7 @@ import javax.swing.*; +import java.awt.*; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; public class ventana2 { JPanel panelV2; @@ -15,5 +18,29 @@ public class ventana2 { public ventana2 (){ + cerrarSesiĆ³nButton.addActionListener(new ActionListener() { + @Override + public void actionPerformed(ActionEvent e) { + JFrame frame = (JFrame) SwingUtilities.getWindowAncestor(panelV2); + frame.dispose(); + + JFrame registerFrame = new JFrame("Seleccionar asiento"); + registerFrame.setContentPane(new SeleccionarAsientoV()); + registerFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); + Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize(); + int height = pantalla.height; + int width = pantalla.width; + frame.setSize(width/2, height/2); + frame.setLocationRelativeTo(null); + registerFrame.pack(); + registerFrame.setVisible(true); + } + }); + comprarBoletosButton.addActionListener(new ActionListener() { + @Override + public void actionPerformed(ActionEvent e) { + + } + }); } } From bfeb3e7be9df5e56d0f852eb72638f2cf080378b Mon Sep 17 00:00:00 2001 From: Roberto Date: Mon, 11 Mar 2024 07:35:21 -0600 Subject: [PATCH 2/2] Avance4.5 Ultima version con pantallas faltantes --- ventana2.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ventana2.java b/ventana2.java index f80cc1f..068451f 100644 --- a/ventana2.java +++ b/ventana2.java @@ -24,16 +24,16 @@ public class ventana2 { JFrame frame = (JFrame) SwingUtilities.getWindowAncestor(panelV2); frame.dispose(); - JFrame registerFrame = new JFrame("Seleccionar asiento"); - registerFrame.setContentPane(new SeleccionarAsientoV()); - registerFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); - Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize(); + + // Por terminar + //SeleccionarAsientoV sala = new SeleccionarAsientoV(); + //SeleccionarAsientoV. + /*Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize(); int height = pantalla.height; int width = pantalla.width; frame.setSize(width/2, height/2); - frame.setLocationRelativeTo(null); - registerFrame.pack(); - registerFrame.setVisible(true); + frame.setLocationRelativeTo(null);*/ + //SeleccionarAsientoV.setVisible(true); } }); comprarBoletosButton.addActionListener(new ActionListener() {