Avance4.3

This commit is contained in:
Roberto 2024-03-10 23:31:33 -06:00
parent e391fe69c2
commit 94828e3c7d
14 changed files with 65 additions and 19 deletions

View File

@ -10,7 +10,7 @@
<orderEntry type="module-library" exported=""> <orderEntry type="module-library" exported="">
<library> <library>
<CLASSES> <CLASSES>
<root url="jar://$USER_HOME$/Downloads/mysql-connector-j-8.0.31.jar!/" /> <root url="jar://$USER_HOME$/Downloads/mysql-connector-java-8.0.30.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />

View File

@ -1,4 +1,5 @@
import javax.swing.*; import javax.swing.*;
import java.awt.*;
public class Main { public class Main {
public static void main(String[] args) { public static void main(String[] args) {
@ -6,6 +7,11 @@ public class Main {
JFrame frame = new JFrame("Login"); JFrame frame = new JFrame("Login");
frame.setContentPane(new ventana1().panel); frame.setContentPane(new ventana1().panel);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
int height = pantalla.height;
int width = pantalla.width;
frame.setSize(width/2, height/2);
frame.setLocationRelativeTo(null);
frame.pack(); frame.pack();
frame.setVisible(true); frame.setVisible(true);
}); });

View File

@ -10,7 +10,7 @@
<orderEntry type="module-library" exported=""> <orderEntry type="module-library" exported="">
<library> <library>
<CLASSES> <CLASSES>
<root url="jar://$USER_HOME$/Downloads/mysql-connector-j-8.0.31.jar!/" /> <root url="jar://$USER_HOME$/Downloads/mysql-connector-java-8.0.30.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />

View File

@ -2,7 +2,6 @@
<project version="4"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/Boletos Teatro/Boletos Teatro.iml" filepath="$PROJECT_DIR$/Boletos Teatro/Boletos Teatro.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/mezontleTeam.iml" filepath="$PROJECT_DIR$/.idea/mezontleTeam.iml" /> <module fileurl="file://$PROJECT_DIR$/.idea/mezontleTeam.iml" filepath="$PROJECT_DIR$/.idea/mezontleTeam.iml" />
</modules> </modules>
</component> </component>

View File

@ -1,16 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="registerV"> <form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="registerV">
<grid id="27dc6" binding="panelPrincipal" layout-manager="GridLayoutManager" row-count="7" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> <grid id="27dc6" binding="panelPrincipal" layout-manager="GridLayoutManager" row-count="8" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/> <margin top="0" left="0" bottom="0" right="0"/>
<constraints> <constraints>
<xy x="20" y="20" width="500" height="400"/> <xy x="20" y="20" width="500" height="400"/>
</constraints> </constraints>
<properties/> <properties>
<background color="-4527617"/>
</properties>
<border type="none"/> <border type="none"/>
<children> <children>
<component id="4161a" class="javax.swing.JTextField" binding="nombreText"> <component id="4161a" class="javax.swing.JTextField" binding="nombreText">
<constraints> <constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false"> <grid row="2" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/> <preferred-size width="150" height="-1"/>
</grid> </grid>
</constraints> </constraints>
@ -18,7 +20,7 @@
</component> </component>
<component id="a97e6" class="javax.swing.JLabel" binding="nombreLabel"> <component id="a97e6" class="javax.swing.JLabel" binding="nombreLabel">
<constraints> <constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/> <grid row="1" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<text value="Nombre"/> <text value="Nombre"/>
@ -26,7 +28,7 @@
</component> </component>
<component id="4e45c" class="javax.swing.JLabel"> <component id="4e45c" class="javax.swing.JLabel">
<constraints> <constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/> <grid row="3" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<text value="Correo"/> <text value="Correo"/>
@ -34,7 +36,7 @@
</component> </component>
<component id="44135" class="javax.swing.JTextField" binding="emailText"> <component id="44135" class="javax.swing.JTextField" binding="emailText">
<constraints> <constraints>
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false"> <grid row="4" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/> <preferred-size width="150" height="-1"/>
</grid> </grid>
</constraints> </constraints>
@ -42,7 +44,7 @@
</component> </component>
<component id="47862" class="javax.swing.JLabel"> <component id="47862" class="javax.swing.JLabel">
<constraints> <constraints>
<grid row="4" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/> <grid row="5" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<text value="Contraseña"/> <text value="Contraseña"/>
@ -50,7 +52,7 @@
</component> </component>
<component id="33198" class="javax.swing.JPasswordField" binding="contrasena1"> <component id="33198" class="javax.swing.JPasswordField" binding="contrasena1">
<constraints> <constraints>
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false"> <grid row="6" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/> <preferred-size width="150" height="-1"/>
</grid> </grid>
</constraints> </constraints>
@ -58,12 +60,32 @@
</component> </component>
<component id="7fb07" class="javax.swing.JButton" binding="registrarseButton" default-binding="true"> <component id="7fb07" class="javax.swing.JButton" binding="registrarseButton" default-binding="true">
<constraints> <constraints>
<grid row="6" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/> <grid row="7" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<background color="-12631553"/>
<foreground color="-1544"/>
<text value="Registrarse"/> <text value="Registrarse"/>
</properties> </properties>
</component> </component>
<component id="dafef" class="javax.swing.JLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="JetBrains Mono" size="22" style="1"/>
<text value="Registrarse"/>
</properties>
</component>
<component id="f2e3a" class="javax.swing.JLabel">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<icon value="Máscaras-de-Teatro (1).jpg"/>
<text value=""/>
</properties>
</component>
</children> </children>
</grid> </grid>
</form> </form>

View File

@ -6,6 +6,8 @@
<xy x="20" y="20" width="811" height="568"/> <xy x="20" y="20" width="811" height="568"/>
</constraints> </constraints>
<properties> <properties>
<alignmentX value="0.5"/>
<background color="-4527617"/>
<enabled value="false"/> <enabled value="false"/>
<opaque value="false"/> <opaque value="false"/>
<visible value="true"/> <visible value="true"/>
@ -27,7 +29,7 @@
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/> <grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<font size="16" style="1"/> <font name="Arial Black" size="16" style="1"/>
<text value="Inicio de sesion"/> <text value="Inicio de sesion"/>
</properties> </properties>
</component> </component>
@ -36,6 +38,8 @@
<grid row="10" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/> <grid row="10" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<background color="-12631553"/>
<foreground color="-1544"/>
<text value="REGISTRARSE"/> <text value="REGISTRARSE"/>
</properties> </properties>
</component> </component>
@ -57,7 +61,7 @@
<horizontalAlignment value="0"/> <horizontalAlignment value="0"/>
<horizontalTextPosition value="0"/> <horizontalTextPosition value="0"/>
<opaque value="false"/> <opaque value="false"/>
<text value="TicketMania"/> <text value="Ticketmania"/>
</properties> </properties>
</component> </component>
<component id="b0f83" class="javax.swing.JLabel" binding="usuarioLabel"> <component id="b0f83" class="javax.swing.JLabel" binding="usuarioLabel">
@ -65,7 +69,8 @@
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> <grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<text value="Usuario"/> <font name="Arial Black"/>
<text value="Usuario:"/>
</properties> </properties>
</component> </component>
<component id="a9848" class="javax.swing.JLabel"> <component id="a9848" class="javax.swing.JLabel">
@ -90,7 +95,8 @@
<grid row="4" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> <grid row="4" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<text value="Contraseña"/> <font name="Arial Black"/>
<text value="Contraseña:"/>
</properties> </properties>
</component> </component>
<component id="57715" class="javax.swing.JPasswordField" binding="contrasenal"> <component id="57715" class="javax.swing.JPasswordField" binding="contrasenal">
@ -106,6 +112,8 @@
<grid row="6" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/> <grid row="6" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<background color="-12631553"/>
<foreground color="-1544"/>
<text value="INICIAR SESION"/> <text value="INICIAR SESION"/>
</properties> </properties>
</component> </component>

View File

@ -1,9 +1,10 @@
import javax.swing.*; import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
public class ventana1 { public class ventana1 {
JPanel panel,panel2; JPanel panel;
private JTextField usuariol; private JTextField usuariol;
private JButton iniciarBoton; private JButton iniciarBoton;
private JButton registerBoton; private JButton registerBoton;
@ -54,6 +55,11 @@ public class ventana1 {
JFrame registerFrame = new JFrame("Registro de Usuario"); JFrame registerFrame = new JFrame("Registro de Usuario");
registerFrame.setContentPane(new registerV().getPanel()); registerFrame.setContentPane(new registerV().getPanel());
registerFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); 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.pack();
registerFrame.setVisible(true); registerFrame.setVisible(true);
} }

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="ventana2"> <form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="ventana2">
<grid id="27dc6" layout-manager="GridLayoutManager" row-count="6" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> <grid id="27dc6" binding="panelV2" layout-manager="GridLayoutManager" row-count="6" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/> <margin top="0" left="0" bottom="0" right="0"/>
<constraints> <constraints>
<xy x="20" y="20" width="856" height="592"/> <xy x="20" y="20" width="856" height="592"/>
@ -8,7 +8,7 @@
<properties> <properties>
<background color="-4527617"/> <background color="-4527617"/>
<foreground color="-3349030"/> <foreground color="-3349030"/>
<preferredSize width="1920" height="1080"/> <preferredSize width="1800" height="1080"/>
<visible value="true"/> <visible value="true"/>
</properties> </properties>
<border type="none"/> <border type="none"/>
@ -35,6 +35,7 @@
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/> <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<background color="-16777216"/>
<icon value="divinacomedia (1).jpg"/> <icon value="divinacomedia (1).jpg"/>
<text value=""/> <text value=""/>
</properties> </properties>

View File

@ -12,4 +12,8 @@ public class ventana2 {
private JButton button5; private JButton button5;
private JButton button6; private JButton button6;
private JScrollBar scrollBar1; private JScrollBar scrollBar1;
public ventana2 (){
}
} }