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="">
<library>
<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>
<JAVADOC />
<SOURCES />

View File

@ -1,4 +1,5 @@
import javax.swing.*;
import java.awt.*;
public class Main {
public static void main(String[] args) {
@ -6,6 +7,11 @@ public class Main {
JFrame frame = new JFrame("Login");
frame.setContentPane(new ventana1().panel);
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.setVisible(true);
});

View File

@ -10,7 +10,7 @@
<orderEntry type="module-library" exported="">
<library>
<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>
<JAVADOC />
<SOURCES />

View File

@ -2,7 +2,6 @@
<project version="4">
<component name="ProjectModuleManager">
<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" />
</modules>
</component>

View File

@ -1,16 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<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"/>
<constraints>
<xy x="20" y="20" width="500" height="400"/>
</constraints>
<properties/>
<properties>
<background color="-4527617"/>
</properties>
<border type="none"/>
<children>
<component id="4161a" class="javax.swing.JTextField" binding="nombreText">
<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"/>
</grid>
</constraints>
@ -18,7 +20,7 @@
</component>
<component id="a97e6" class="javax.swing.JLabel" binding="nombreLabel">
<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>
<properties>
<text value="Nombre"/>
@ -26,7 +28,7 @@
</component>
<component id="4e45c" class="javax.swing.JLabel">
<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>
<properties>
<text value="Correo"/>
@ -34,7 +36,7 @@
</component>
<component id="44135" class="javax.swing.JTextField" binding="emailText">
<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"/>
</grid>
</constraints>
@ -42,7 +44,7 @@
</component>
<component id="47862" class="javax.swing.JLabel">
<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>
<properties>
<text value="Contraseña"/>
@ -50,7 +52,7 @@
</component>
<component id="33198" class="javax.swing.JPasswordField" binding="contrasena1">
<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"/>
</grid>
</constraints>
@ -58,12 +60,32 @@
</component>
<component id="7fb07" class="javax.swing.JButton" binding="registrarseButton" default-binding="true">
<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>
<properties>
<background color="-12631553"/>
<foreground color="-1544"/>
<text value="Registrarse"/>
</properties>
</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>
</grid>
</form>

View File

@ -6,6 +6,8 @@
<xy x="20" y="20" width="811" height="568"/>
</constraints>
<properties>
<alignmentX value="0.5"/>
<background color="-4527617"/>
<enabled value="false"/>
<opaque value="false"/>
<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"/>
</constraints>
<properties>
<font size="16" style="1"/>
<font name="Arial Black" size="16" style="1"/>
<text value="Inicio de sesion"/>
</properties>
</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"/>
</constraints>
<properties>
<background color="-12631553"/>
<foreground color="-1544"/>
<text value="REGISTRARSE"/>
</properties>
</component>
@ -57,7 +61,7 @@
<horizontalAlignment value="0"/>
<horizontalTextPosition value="0"/>
<opaque value="false"/>
<text value="TicketMania"/>
<text value="Ticketmania"/>
</properties>
</component>
<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"/>
</constraints>
<properties>
<text value="Usuario"/>
<font name="Arial Black"/>
<text value="Usuario:"/>
</properties>
</component>
<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"/>
</constraints>
<properties>
<text value="Contraseña"/>
<font name="Arial Black"/>
<text value="Contraseña:"/>
</properties>
</component>
<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"/>
</constraints>
<properties>
<background color="-12631553"/>
<foreground color="-1544"/>
<text value="INICIAR SESION"/>
</properties>
</component>

View File

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

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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"/>
<constraints>
<xy x="20" y="20" width="856" height="592"/>
@ -8,7 +8,7 @@
<properties>
<background color="-4527617"/>
<foreground color="-3349030"/>
<preferredSize width="1920" height="1080"/>
<preferredSize width="1800" height="1080"/>
<visible value="true"/>
</properties>
<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"/>
</constraints>
<properties>
<background color="-16777216"/>
<icon value="divinacomedia (1).jpg"/>
<text value=""/>
</properties>

View File

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