commit 0f0018e67a0742bcdbb256e9f34e0e9156e1612d
parent 38e565376525bdf6198a38cb70ea9da868e7fc01
Author: Michael Neuper <michael@michaelneuper.com>
Date: Mon, 1 May 2023 16:13:06 +0200
Rename login to signup
Diffstat:
5 files changed, 908 insertions(+), 908 deletions(-)
diff --git a/nbproject/project.properties b/nbproject/project.properties
@@ -89,7 +89,7 @@ jnlp.signed=false
jnlp.signing=
jnlp.signing.alias=
jnlp.signing.keystore=
-main.class=view.Login
+main.class=view.SignupUI
# Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found.
manifest.custom.application.library.allowable.codebase=
# Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts.
diff --git a/src/view/Login.form b/src/view/Login.form
@@ -1,502 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
- <Properties>
- <Property name="defaultCloseOperation" type="int" value="3"/>
- <Property name="title" type="java.lang.String" value="librejack login"/>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="99" red="0" type="rgb"/>
- </Property>
- <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
- <Color id="Default Cursor"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[900, 430]"/>
- </Property>
- </Properties>
- <SyntheticProperties>
- <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
- <SyntheticProperty name="generateCenter" type="boolean" value="false"/>
- </SyntheticProperties>
- <AuxValues>
- <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
- <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
- <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
- <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
- <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
- <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-82,0,0,5,76"/>
- </AuxValues>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
- <SubComponents>
- <Container class="javax.swing.JPanel" name="jPanelWest">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="66" red="0" type="rgb"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[415, 430]"/>
- </Property>
- </Properties>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
- <BorderConstraints direction="West"/>
- </Constraint>
- </Constraints>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"/>
- <SubComponents>
- <Container class="javax.swing.JPanel" name="jPanelWelcomeText">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="66" red="0" type="rgb"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[415, 70]"/>
- </Property>
- </Properties>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="1" attributes="0">
- <EmptySpace pref="65" max="32767" attributes="0"/>
- <Component id="jLabelWelcome" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="63" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="-2" pref="17" max="-2" attributes="0"/>
- <Component id="jLabelWelcome" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="21" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="jLabelWelcome">
- <Properties>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="24" style="1"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="ff" red="ff" type="rgb"/>
- </Property>
- <Property name="text" type="java.lang.String" value="WELCOME TO LIBREJACK"/>
- </Properties>
- </Component>
- </SubComponents>
- </Container>
- <Container class="javax.swing.JPanel" name="jPanelLoginText">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="66" red="0" type="rgb"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[415, 40]"/>
- </Property>
- </Properties>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="-2" pref="178" max="-2" attributes="0"/>
- <Component id="jLabelLogin" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="190" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Component id="jLabelLogin" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="0" pref="15" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="jLabelLogin">
- <Properties>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="18" style="1"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- <Property name="text" type="java.lang.String" value="Login"/>
- </Properties>
- </Component>
- </SubComponents>
- </Container>
- <Container class="javax.swing.JPanel" name="jPanelFields">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="66" red="0" type="rgb"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[415, 315]"/>
- </Property>
- </Properties>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="-2" pref="40" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="jLabelUsername" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jLabelEmail" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jLabelMobileNumber" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jLabelPassword" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jLabelDateOfBirth" alignment="0" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" pref="33" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" max="-2" attributes="0">
- <Component id="jSeparatorUsername" max="32767" attributes="0"/>
- <Component id="jTextFieldUsername" alignment="0" max="32767" attributes="0"/>
- <Component id="jTextFieldEmail" alignment="0" pref="183" max="32767" attributes="0"/>
- <Component id="jTextFieldMobileNumber" alignment="0" max="32767" attributes="0"/>
- <Component id="jPasswordField" max="32767" attributes="0"/>
- <Component id="jSeparatorEmail" alignment="0" pref="183" max="32767" attributes="0"/>
- <Component id="jSeparatorMobileNumber" alignment="0" pref="183" max="32767" attributes="0"/>
- <Component id="jDateChooser1" alignment="1" max="32767" attributes="0"/>
- <Component id="jSeparatorPassword" alignment="0" max="32767" attributes="0"/>
- </Group>
- <EmptySpace pref="40" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="jLabelUsername" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="jTextFieldUsername" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
- <Component id="jSeparatorUsername" min="-2" pref="10" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="jLabelEmail" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="jTextFieldEmail" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
- <Component id="jSeparatorEmail" min="-2" pref="10" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="jLabelMobileNumber" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="jTextFieldMobileNumber" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jSeparatorMobileNumber" min="-2" pref="10" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="10" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="jLabelDateOfBirth" min="-2" max="-2" attributes="0"/>
- <Component id="jDateChooser1" min="-2" max="-2" attributes="0"/>
- </Group>
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
- <Component id="jLabelPassword" min="-2" max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace type="separate" max="-2" attributes="0"/>
- <Component id="jPasswordField" min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jSeparatorPassword" min="-2" pref="10" max="-2" attributes="0"/>
- <EmptySpace pref="100" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="jLabelUsername">
- <Properties>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
- <Image iconType="3" name="/assets/icons/user.png"/>
- </Property>
- <Property name="text" type="java.lang.String" value="Username:"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JLabel" name="jLabelMobileNumber">
- <Properties>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
- <Image iconType="3" name="/assets/icons/phone.png"/>
- </Property>
- <Property name="text" type="java.lang.String" value="Mobile Number:"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JLabel" name="jLabelDateOfBirth">
- <Properties>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
- <Image iconType="3" name="/assets/icons/calendar.png"/>
- </Property>
- <Property name="text" type="java.lang.String" value="Date of Birth:"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JLabel" name="jLabelPassword">
- <Properties>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
- <Image iconType="3" name="/assets/icons/lock.png"/>
- </Property>
- <Property name="text" type="java.lang.String" value="Password:"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JLabel" name="jLabelEmail">
- <Properties>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
- <Image iconType="3" name="/assets/icons/email.png"/>
- </Property>
- <Property name="text" type="java.lang.String" value="Email:"/>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="jTextFieldUsername">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="66" red="0" type="rgb"/>
- </Property>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="99" green="99" red="99" type="rgb"/>
- </Property>
- <Property name="text" type="java.lang.String" value="PenguinPancakes69"/>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="null"/>
- </Property>
- <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
- <Color id="Text Cursor"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jTextFieldUsernameMouseClicked"/>
- </Events>
- </Component>
- <Component class="javax.swing.JTextField" name="jTextFieldEmail">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="66" red="0" type="rgb"/>
- </Property>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="99" green="99" red="99" type="rgb"/>
- </Property>
- <Property name="text" type="java.lang.String" value="john.doe@example.com"/>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="null"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jTextFieldEmailMouseClicked"/>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldEmailActionPerformed"/>
- </Events>
- </Component>
- <Component class="javax.swing.JTextField" name="jTextFieldMobileNumber">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="66" red="0" type="rgb"/>
- </Property>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="99" green="99" red="99" type="rgb"/>
- </Property>
- <Property name="text" type="java.lang.String" value="082 738 9016"/>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="null"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jTextFieldMobileNumberMouseClicked"/>
- </Events>
- </Component>
- <Component class="javax.swing.JPasswordField" name="jPasswordField">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="66" red="0" type="rgb"/>
- </Property>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="99" green="99" red="99" type="rgb"/>
- </Property>
- <Property name="text" type="java.lang.String" value="Password@12345"/>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="null"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPasswordFieldMouseClicked"/>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jPasswordFieldActionPerformed"/>
- </Events>
- </Component>
- <Component class="javax.swing.JSeparator" name="jSeparatorUsername">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JSeparator" name="jSeparatorEmail">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JSeparator" name="jSeparatorMobileNumber">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JSeparator" name="jSeparatorPassword">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- </Properties>
- </Component>
- <Component class="com.toedter.calendar.JDateChooser" name="jDateChooser1">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="0" green="66" red="0" type="rgb"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="99" green="99" red="99" type="rgb"/>
- </Property>
- <Property name="toolTipText" type="java.lang.String" value=""/>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="14" style="0"/>
- </Property>
- </Properties>
- </Component>
- </SubComponents>
- </Container>
- </SubComponents>
- </Container>
- <Container class="javax.swing.JPanel" name="jPanelCenter">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="33" green="99" red="0" type="rgb"/>
- </Property>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[550, 430]"/>
- </Property>
- </Properties>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
- <BorderConstraints direction="Center"/>
- </Constraint>
- </Constraints>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <EmptySpace min="-2" pref="62" max="-2" attributes="0"/>
- <Component id="jLabelCardsIcon" min="-2" max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="-2" pref="164" max="-2" attributes="0"/>
- <Component id="jButtonPlay" min="-2" pref="98" max="-2" attributes="0"/>
- </Group>
- </Group>
- <EmptySpace pref="579" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace pref="40" max="32767" attributes="0"/>
- <Component id="jLabelCardsIcon" min="-2" pref="306" max="-2" attributes="0"/>
- <EmptySpace type="separate" max="-2" attributes="0"/>
- <Component id="jButtonPlay" min="-2" pref="50" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="16" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="jLabelCardsIcon">
- <Properties>
- <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
- <Image iconType="3" name="/assets/images/hearts_card.png"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="jButtonPlay">
- <Properties>
- <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="0" red="66" type="rgb"/>
- </Property>
- <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
- <Font name="Segoe UI" size="24" style="0"/>
- </Property>
- <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
- <Color blue="cc" green="cc" red="cc" type="rgb"/>
- </Property>
- <Property name="text" type="java.lang.String" value="PLAY"/>
- <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
- <Border info="null"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonPlayActionPerformed"/>
- </Events>
- </Component>
- </SubComponents>
- </Container>
- </SubComponents>
-</Form>
diff --git a/src/view/Login.java b/src/view/Login.java
@@ -1,405 +0,0 @@
-package view;
-
-import com.formdev.flatlaf.FlatDarkLaf;
-import controller.LoginController;
-import java.util.Date;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-
-/**
- * GUI for login screen.
- *
- * @author Michael Neuper
- * <a href="mailto:michael@michaelneuper.com">michael@michaelneuper.com</a>
- */
-public class Login extends javax.swing.JFrame {
-
- /**
- * Creates new form Login
- */
- public Login() {
- initComponents();
- }
-
- LoginController controller = new LoginController();
-
- /**
- * This method is called from within the constructor to initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is always
- * regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- jPanelWest = new javax.swing.JPanel();
- jPanelWelcomeText = new javax.swing.JPanel();
- jLabelWelcome = new javax.swing.JLabel();
- jPanelLoginText = new javax.swing.JPanel();
- jLabelLogin = new javax.swing.JLabel();
- jPanelFields = new javax.swing.JPanel();
- jLabelUsername = new javax.swing.JLabel();
- jLabelMobileNumber = new javax.swing.JLabel();
- jLabelDateOfBirth = new javax.swing.JLabel();
- jLabelPassword = new javax.swing.JLabel();
- jLabelEmail = new javax.swing.JLabel();
- jTextFieldUsername = new javax.swing.JTextField();
- jTextFieldEmail = new javax.swing.JTextField();
- jTextFieldMobileNumber = new javax.swing.JTextField();
- jPasswordField = new javax.swing.JPasswordField();
- jSeparatorUsername = new javax.swing.JSeparator();
- jSeparatorEmail = new javax.swing.JSeparator();
- jSeparatorMobileNumber = new javax.swing.JSeparator();
- jSeparatorPassword = new javax.swing.JSeparator();
- jDateChooser1 = new com.toedter.calendar.JDateChooser();
- jPanelCenter = new javax.swing.JPanel();
- jLabelCardsIcon = new javax.swing.JLabel();
- jButtonPlay = new javax.swing.JButton();
-
- setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
- setTitle("librejack login");
- setBackground(new java.awt.Color(0, 153, 0));
- setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
- setPreferredSize(new java.awt.Dimension(900, 430));
-
- jPanelWest.setBackground(new java.awt.Color(0, 102, 0));
- jPanelWest.setPreferredSize(new java.awt.Dimension(415, 430));
-
- jPanelWelcomeText.setBackground(new java.awt.Color(0, 102, 0));
- jPanelWelcomeText.setPreferredSize(new java.awt.Dimension(415, 70));
-
- jLabelWelcome.setFont(new java.awt.Font("Segoe UI", 1, 24)); // NOI18N
- jLabelWelcome.setForeground(new java.awt.Color(255, 255, 0));
- jLabelWelcome.setText("WELCOME TO LIBREJACK");
-
- javax.swing.GroupLayout jPanelWelcomeTextLayout = new javax.swing.GroupLayout(jPanelWelcomeText);
- jPanelWelcomeText.setLayout(jPanelWelcomeTextLayout);
- jPanelWelcomeTextLayout.setHorizontalGroup(
- jPanelWelcomeTextLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelWelcomeTextLayout.createSequentialGroup()
- .addContainerGap(65, Short.MAX_VALUE)
- .addComponent(jLabelWelcome)
- .addGap(63, 63, 63))
- );
- jPanelWelcomeTextLayout.setVerticalGroup(
- jPanelWelcomeTextLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanelWelcomeTextLayout.createSequentialGroup()
- .addGap(17, 17, 17)
- .addComponent(jLabelWelcome)
- .addContainerGap(21, Short.MAX_VALUE))
- );
-
- jPanelWest.add(jPanelWelcomeText);
-
- jPanelLoginText.setBackground(new java.awt.Color(0, 102, 0));
- jPanelLoginText.setPreferredSize(new java.awt.Dimension(415, 40));
-
- jLabelLogin.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N
- jLabelLogin.setForeground(new java.awt.Color(204, 204, 204));
- jLabelLogin.setText("Login");
-
- javax.swing.GroupLayout jPanelLoginTextLayout = new javax.swing.GroupLayout(jPanelLoginText);
- jPanelLoginText.setLayout(jPanelLoginTextLayout);
- jPanelLoginTextLayout.setHorizontalGroup(
- jPanelLoginTextLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanelLoginTextLayout.createSequentialGroup()
- .addGap(178, 178, 178)
- .addComponent(jLabelLogin)
- .addContainerGap(190, Short.MAX_VALUE))
- );
- jPanelLoginTextLayout.setVerticalGroup(
- jPanelLoginTextLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanelLoginTextLayout.createSequentialGroup()
- .addComponent(jLabelLogin)
- .addGap(0, 15, Short.MAX_VALUE))
- );
-
- jPanelWest.add(jPanelLoginText);
-
- jPanelFields.setBackground(new java.awt.Color(0, 102, 0));
- jPanelFields.setPreferredSize(new java.awt.Dimension(415, 315));
-
- jLabelUsername.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
- jLabelUsername.setForeground(new java.awt.Color(204, 204, 204));
- jLabelUsername.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/user.png"))); // NOI18N
- jLabelUsername.setText("Username:");
-
- jLabelMobileNumber.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
- jLabelMobileNumber.setForeground(new java.awt.Color(204, 204, 204));
- jLabelMobileNumber.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/phone.png"))); // NOI18N
- jLabelMobileNumber.setText("Mobile Number:");
-
- jLabelDateOfBirth.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
- jLabelDateOfBirth.setForeground(new java.awt.Color(204, 204, 204));
- jLabelDateOfBirth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/calendar.png"))); // NOI18N
- jLabelDateOfBirth.setText("Date of Birth:");
-
- jLabelPassword.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
- jLabelPassword.setForeground(new java.awt.Color(204, 204, 204));
- jLabelPassword.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/lock.png"))); // NOI18N
- jLabelPassword.setText("Password:");
-
- jLabelEmail.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
- jLabelEmail.setForeground(new java.awt.Color(204, 204, 204));
- jLabelEmail.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/email.png"))); // NOI18N
- jLabelEmail.setText("Email:");
-
- jTextFieldUsername.setBackground(new java.awt.Color(0, 102, 0));
- jTextFieldUsername.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
- jTextFieldUsername.setForeground(new java.awt.Color(153, 153, 153));
- jTextFieldUsername.setText("PenguinPancakes69");
- jTextFieldUsername.setBorder(null);
- jTextFieldUsername.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
- jTextFieldUsername.addMouseListener(new java.awt.event.MouseAdapter() {
- public void mouseClicked(java.awt.event.MouseEvent evt) {
- jTextFieldUsernameMouseClicked(evt);
- }
- });
-
- jTextFieldEmail.setBackground(new java.awt.Color(0, 102, 0));
- jTextFieldEmail.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
- jTextFieldEmail.setForeground(new java.awt.Color(153, 153, 153));
- jTextFieldEmail.setText("john.doe@example.com");
- jTextFieldEmail.setBorder(null);
- jTextFieldEmail.addMouseListener(new java.awt.event.MouseAdapter() {
- public void mouseClicked(java.awt.event.MouseEvent evt) {
- jTextFieldEmailMouseClicked(evt);
- }
- });
- jTextFieldEmail.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jTextFieldEmailActionPerformed(evt);
- }
- });
-
- jTextFieldMobileNumber.setBackground(new java.awt.Color(0, 102, 0));
- jTextFieldMobileNumber.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
- jTextFieldMobileNumber.setForeground(new java.awt.Color(153, 153, 153));
- jTextFieldMobileNumber.setText("082 738 9016");
- jTextFieldMobileNumber.setBorder(null);
- jTextFieldMobileNumber.addMouseListener(new java.awt.event.MouseAdapter() {
- public void mouseClicked(java.awt.event.MouseEvent evt) {
- jTextFieldMobileNumberMouseClicked(evt);
- }
- });
-
- jPasswordField.setBackground(new java.awt.Color(0, 102, 0));
- jPasswordField.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
- jPasswordField.setForeground(new java.awt.Color(153, 153, 153));
- jPasswordField.setText("Password@12345");
- jPasswordField.setBorder(null);
- jPasswordField.addMouseListener(new java.awt.event.MouseAdapter() {
- public void mouseClicked(java.awt.event.MouseEvent evt) {
- jPasswordFieldMouseClicked(evt);
- }
- });
- jPasswordField.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jPasswordFieldActionPerformed(evt);
- }
- });
-
- jSeparatorUsername.setBackground(new java.awt.Color(204, 204, 204));
-
- jSeparatorEmail.setBackground(new java.awt.Color(204, 204, 204));
-
- jSeparatorMobileNumber.setBackground(new java.awt.Color(204, 204, 204));
-
- jSeparatorPassword.setBackground(new java.awt.Color(204, 204, 204));
-
- jDateChooser1.setBackground(new java.awt.Color(0, 102, 0));
- jDateChooser1.setForeground(new java.awt.Color(153, 153, 153));
- jDateChooser1.setToolTipText("");
- jDateChooser1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
-
- javax.swing.GroupLayout jPanelFieldsLayout = new javax.swing.GroupLayout(jPanelFields);
- jPanelFields.setLayout(jPanelFieldsLayout);
- jPanelFieldsLayout.setHorizontalGroup(
- jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanelFieldsLayout.createSequentialGroup()
- .addGap(40, 40, 40)
- .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabelUsername)
- .addComponent(jLabelEmail)
- .addComponent(jLabelMobileNumber)
- .addComponent(jLabelPassword)
- .addComponent(jLabelDateOfBirth))
- .addGap(33, 33, 33)
- .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(jSeparatorUsername)
- .addComponent(jTextFieldUsername)
- .addComponent(jTextFieldEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
- .addComponent(jTextFieldMobileNumber)
- .addComponent(jPasswordField)
- .addComponent(jSeparatorEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
- .addComponent(jSeparatorMobileNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
- .addComponent(jDateChooser1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(jSeparatorPassword))
- .addContainerGap(40, Short.MAX_VALUE))
- );
- jPanelFieldsLayout.setVerticalGroup(
- jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanelFieldsLayout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabelUsername)
- .addComponent(jTextFieldUsername, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(4, 4, 4)
- .addComponent(jSeparatorUsername, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabelEmail)
- .addComponent(jTextFieldEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(4, 4, 4)
- .addComponent(jSeparatorEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabelMobileNumber)
- .addComponent(jTextFieldMobileNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jSeparatorMobileNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(10, 10, 10)
- .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabelDateOfBirth)
- .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanelFieldsLayout.createSequentialGroup()
- .addGap(23, 23, 23)
- .addComponent(jLabelPassword))
- .addGroup(jPanelFieldsLayout.createSequentialGroup()
- .addGap(18, 18, 18)
- .addComponent(jPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jSeparatorPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(100, Short.MAX_VALUE))
- );
-
- jPanelWest.add(jPanelFields);
-
- getContentPane().add(jPanelWest, java.awt.BorderLayout.WEST);
-
- jPanelCenter.setBackground(new java.awt.Color(0, 153, 51));
- jPanelCenter.setPreferredSize(new java.awt.Dimension(550, 430));
-
- jLabelCardsIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/images/hearts_card.png"))); // NOI18N
-
- jButtonPlay.setBackground(new java.awt.Color(102, 0, 204));
- jButtonPlay.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N
- jButtonPlay.setForeground(new java.awt.Color(204, 204, 204));
- jButtonPlay.setText("PLAY");
- jButtonPlay.setBorder(null);
- jButtonPlay.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonPlayActionPerformed(evt);
- }
- });
-
- javax.swing.GroupLayout jPanelCenterLayout = new javax.swing.GroupLayout(jPanelCenter);
- jPanelCenter.setLayout(jPanelCenterLayout);
- jPanelCenterLayout.setHorizontalGroup(
- jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanelCenterLayout.createSequentialGroup()
- .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanelCenterLayout.createSequentialGroup()
- .addGap(62, 62, 62)
- .addComponent(jLabelCardsIcon))
- .addGroup(jPanelCenterLayout.createSequentialGroup()
- .addGap(164, 164, 164)
- .addComponent(jButtonPlay, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addContainerGap(579, Short.MAX_VALUE))
- );
- jPanelCenterLayout.setVerticalGroup(
- jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanelCenterLayout.createSequentialGroup()
- .addContainerGap(40, Short.MAX_VALUE)
- .addComponent(jLabelCardsIcon, javax.swing.GroupLayout.PREFERRED_SIZE, 306, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(jButtonPlay, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(16, 16, 16))
- );
-
- getContentPane().add(jPanelCenter, java.awt.BorderLayout.CENTER);
-
- pack();
- }// </editor-fold>//GEN-END:initComponents
-
- private void jTextFieldEmailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldEmailActionPerformed
-
- }//GEN-LAST:event_jTextFieldEmailActionPerformed
-
- private void jButtonPlayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPlayActionPerformed
- char[] passwordCh = jPasswordField.getPassword();
- String password = new String(passwordCh); // convert password to string
- Date selectedDate = jDateChooser1.getDate();
- if (controller.areAllFieldsValid(
- jTextFieldEmail.getText(),
- jTextFieldMobileNumber.getText(),
- selectedDate,
- password)) {
- new MainUI().setVisible(true); // open the game window
- this.dispose(); // close the login screen
- }
- }//GEN-LAST:event_jButtonPlayActionPerformed
-
- private void jPasswordFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jPasswordFieldActionPerformed
-
- }//GEN-LAST:event_jPasswordFieldActionPerformed
-
- private void jTextFieldUsernameMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTextFieldUsernameMouseClicked
- jTextFieldUsername.setText("");
- }//GEN-LAST:event_jTextFieldUsernameMouseClicked
-
- private void jTextFieldEmailMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTextFieldEmailMouseClicked
- jTextFieldEmail.setText("");
- }//GEN-LAST:event_jTextFieldEmailMouseClicked
-
- private void jTextFieldMobileNumberMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTextFieldMobileNumberMouseClicked
- jTextFieldMobileNumber.setText("");
- }//GEN-LAST:event_jTextFieldMobileNumberMouseClicked
-
- private void jPasswordFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPasswordFieldMouseClicked
- jPasswordField.setText("");
- }//GEN-LAST:event_jPasswordFieldMouseClicked
-
- /**
- * @param args the command line arguments
- */
- public static void main(String args[]) {
- /* Set the FlatDarkLaf look and feel */
- try {
- UIManager.setLookAndFeel(new FlatDarkLaf());
- } catch (UnsupportedLookAndFeelException e) {
- }
-
- /* Create and display the form */
- java.awt.EventQueue.invokeLater(() -> {
- new Login().setVisible(true);
- });
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButtonPlay;
- private com.toedter.calendar.JDateChooser jDateChooser1;
- private javax.swing.JLabel jLabelCardsIcon;
- private javax.swing.JLabel jLabelDateOfBirth;
- private javax.swing.JLabel jLabelEmail;
- private javax.swing.JLabel jLabelLogin;
- private javax.swing.JLabel jLabelMobileNumber;
- private javax.swing.JLabel jLabelPassword;
- private javax.swing.JLabel jLabelUsername;
- private javax.swing.JLabel jLabelWelcome;
- private javax.swing.JPanel jPanelCenter;
- private javax.swing.JPanel jPanelFields;
- private javax.swing.JPanel jPanelLoginText;
- private javax.swing.JPanel jPanelWelcomeText;
- private javax.swing.JPanel jPanelWest;
- private javax.swing.JPasswordField jPasswordField;
- private javax.swing.JSeparator jSeparatorEmail;
- private javax.swing.JSeparator jSeparatorMobileNumber;
- private javax.swing.JSeparator jSeparatorPassword;
- private javax.swing.JSeparator jSeparatorUsername;
- private javax.swing.JTextField jTextFieldEmail;
- private javax.swing.JTextField jTextFieldMobileNumber;
- private javax.swing.JTextField jTextFieldUsername;
- // End of variables declaration//GEN-END:variables
-}
diff --git a/src/view/SignupUI.form b/src/view/SignupUI.form
@@ -0,0 +1,502 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
+ <Properties>
+ <Property name="defaultCloseOperation" type="int" value="3"/>
+ <Property name="title" type="java.lang.String" value="Sign Up to librejack"/>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="99" red="0" type="rgb"/>
+ </Property>
+ <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
+ <Color id="Default Cursor"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[900, 430]"/>
+ </Property>
+ </Properties>
+ <SyntheticProperties>
+ <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
+ <SyntheticProperty name="generateCenter" type="boolean" value="false"/>
+ </SyntheticProperties>
+ <AuxValues>
+ <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
+ <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
+ <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
+ <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
+ <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
+ <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-82,0,0,5,95"/>
+ </AuxValues>
+
+ <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
+ <SubComponents>
+ <Container class="javax.swing.JPanel" name="jPanelWest">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="66" red="0" type="rgb"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[415, 430]"/>
+ </Property>
+ </Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
+ <BorderConstraints direction="West"/>
+ </Constraint>
+ </Constraints>
+
+ <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"/>
+ <SubComponents>
+ <Container class="javax.swing.JPanel" name="jPanelWelcomeText">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="66" red="0" type="rgb"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[415, 70]"/>
+ </Property>
+ </Properties>
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="1" attributes="0">
+ <EmptySpace pref="65" max="32767" attributes="0"/>
+ <Component id="jLabelWelcome" min="-2" max="-2" attributes="0"/>
+ <EmptySpace min="-2" pref="63" max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace min="-2" pref="17" max="-2" attributes="0"/>
+ <Component id="jLabelWelcome" min="-2" max="-2" attributes="0"/>
+ <EmptySpace pref="21" max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Component class="javax.swing.JLabel" name="jLabelWelcome">
+ <Properties>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="24" style="1"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="ff" red="ff" type="rgb"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="WELCOME TO LIBREJACK"/>
+ </Properties>
+ </Component>
+ </SubComponents>
+ </Container>
+ <Container class="javax.swing.JPanel" name="jPanelLoginText">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="66" red="0" type="rgb"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[415, 40]"/>
+ </Property>
+ </Properties>
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace min="-2" pref="178" max="-2" attributes="0"/>
+ <Component id="jLabelLogin" min="-2" max="-2" attributes="0"/>
+ <EmptySpace pref="171" max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <Component id="jLabelLogin" min="-2" max="-2" attributes="0"/>
+ <EmptySpace min="0" pref="15" max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Component class="javax.swing.JLabel" name="jLabelLogin">
+ <Properties>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="18" style="1"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="Sign Up"/>
+ </Properties>
+ </Component>
+ </SubComponents>
+ </Container>
+ <Container class="javax.swing.JPanel" name="jPanelFields">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="66" red="0" type="rgb"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[415, 315]"/>
+ </Property>
+ </Properties>
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace min="-2" pref="40" max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="jLabelUsername" alignment="0" min="-2" max="-2" attributes="0"/>
+ <Component id="jLabelEmail" alignment="0" min="-2" max="-2" attributes="0"/>
+ <Component id="jLabelMobileNumber" alignment="0" min="-2" max="-2" attributes="0"/>
+ <Component id="jLabelPassword" alignment="0" min="-2" max="-2" attributes="0"/>
+ <Component id="jLabelDateOfBirth" alignment="0" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace min="-2" pref="33" max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" max="-2" attributes="0">
+ <Component id="jSeparatorUsername" max="32767" attributes="0"/>
+ <Component id="jTextFieldUsername" alignment="0" max="32767" attributes="0"/>
+ <Component id="jTextFieldEmail" alignment="0" pref="183" max="32767" attributes="0"/>
+ <Component id="jTextFieldMobileNumber" alignment="0" max="32767" attributes="0"/>
+ <Component id="jPasswordField" max="32767" attributes="0"/>
+ <Component id="jSeparatorEmail" alignment="0" pref="183" max="32767" attributes="0"/>
+ <Component id="jSeparatorMobileNumber" alignment="0" pref="183" max="32767" attributes="0"/>
+ <Component id="jDateChooser1" alignment="1" max="32767" attributes="0"/>
+ <Component id="jSeparatorPassword" alignment="0" max="32767" attributes="0"/>
+ </Group>
+ <EmptySpace pref="40" max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="jLabelUsername" alignment="3" min="-2" max="-2" attributes="0"/>
+ <Component id="jTextFieldUsername" alignment="3" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
+ <Component id="jSeparatorUsername" min="-2" pref="10" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="jLabelEmail" alignment="3" min="-2" max="-2" attributes="0"/>
+ <Component id="jTextFieldEmail" alignment="3" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
+ <Component id="jSeparatorEmail" min="-2" pref="10" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="jLabelMobileNumber" alignment="3" min="-2" max="-2" attributes="0"/>
+ <Component id="jTextFieldMobileNumber" alignment="3" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="jSeparatorMobileNumber" min="-2" pref="10" max="-2" attributes="0"/>
+ <EmptySpace min="-2" pref="10" max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="jLabelDateOfBirth" min="-2" max="-2" attributes="0"/>
+ <Component id="jDateChooser1" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" attributes="0">
+ <EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
+ <Component id="jLabelPassword" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace type="separate" max="-2" attributes="0"/>
+ <Component id="jPasswordField" min="-2" max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="jSeparatorPassword" min="-2" pref="10" max="-2" attributes="0"/>
+ <EmptySpace pref="100" max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Component class="javax.swing.JLabel" name="jLabelUsername">
+ <Properties>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
+ <Image iconType="3" name="/assets/icons/user.png"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="Username:"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JLabel" name="jLabelMobileNumber">
+ <Properties>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
+ <Image iconType="3" name="/assets/icons/phone.png"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="Mobile Number:"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JLabel" name="jLabelDateOfBirth">
+ <Properties>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
+ <Image iconType="3" name="/assets/icons/calendar.png"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="Date of Birth:"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JLabel" name="jLabelPassword">
+ <Properties>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
+ <Image iconType="3" name="/assets/icons/lock.png"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="Password:"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JLabel" name="jLabelEmail">
+ <Properties>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
+ <Image iconType="3" name="/assets/icons/email.png"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="Email:"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JTextField" name="jTextFieldUsername">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="66" red="0" type="rgb"/>
+ </Property>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="99" green="99" red="99" type="rgb"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="PenguinPancakes69"/>
+ <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
+ <Border info="null"/>
+ </Property>
+ <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
+ <Color id="Text Cursor"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jTextFieldUsernameMouseClicked"/>
+ </Events>
+ </Component>
+ <Component class="javax.swing.JTextField" name="jTextFieldEmail">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="66" red="0" type="rgb"/>
+ </Property>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="99" green="99" red="99" type="rgb"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="john.doe@example.com"/>
+ <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
+ <Border info="null"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jTextFieldEmailMouseClicked"/>
+ <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldEmailActionPerformed"/>
+ </Events>
+ </Component>
+ <Component class="javax.swing.JTextField" name="jTextFieldMobileNumber">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="66" red="0" type="rgb"/>
+ </Property>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="99" green="99" red="99" type="rgb"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="082 738 9016"/>
+ <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
+ <Border info="null"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jTextFieldMobileNumberMouseClicked"/>
+ </Events>
+ </Component>
+ <Component class="javax.swing.JPasswordField" name="jPasswordField">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="66" red="0" type="rgb"/>
+ </Property>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="99" green="99" red="99" type="rgb"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="Password@12345"/>
+ <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
+ <Border info="null"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPasswordFieldMouseClicked"/>
+ <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jPasswordFieldActionPerformed"/>
+ </Events>
+ </Component>
+ <Component class="javax.swing.JSeparator" name="jSeparatorUsername">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JSeparator" name="jSeparatorEmail">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JSeparator" name="jSeparatorMobileNumber">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JSeparator" name="jSeparatorPassword">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ </Properties>
+ </Component>
+ <Component class="com.toedter.calendar.JDateChooser" name="jDateChooser1">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="0" green="66" red="0" type="rgb"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="99" green="99" red="99" type="rgb"/>
+ </Property>
+ <Property name="toolTipText" type="java.lang.String" value=""/>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="14" style="0"/>
+ </Property>
+ </Properties>
+ </Component>
+ </SubComponents>
+ </Container>
+ </SubComponents>
+ </Container>
+ <Container class="javax.swing.JPanel" name="jPanelCenter">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="33" green="99" red="0" type="rgb"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[550, 430]"/>
+ </Property>
+ </Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
+ <BorderConstraints direction="Center"/>
+ </Constraint>
+ </Constraints>
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" attributes="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" attributes="0">
+ <EmptySpace min="-2" pref="62" max="-2" attributes="0"/>
+ <Component id="jLabelCardsIcon" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace min="-2" pref="164" max="-2" attributes="0"/>
+ <Component id="jButtonPlay" min="-2" pref="98" max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ <EmptySpace pref="598" max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace pref="40" max="32767" attributes="0"/>
+ <Component id="jLabelCardsIcon" min="-2" pref="306" max="-2" attributes="0"/>
+ <EmptySpace type="separate" max="-2" attributes="0"/>
+ <Component id="jButtonPlay" min="-2" pref="50" max="-2" attributes="0"/>
+ <EmptySpace min="-2" pref="16" max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Component class="javax.swing.JLabel" name="jLabelCardsIcon">
+ <Properties>
+ <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
+ <Image iconType="3" name="/assets/images/hearts_card.png"/>
+ </Property>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JButton" name="jButtonPlay">
+ <Properties>
+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="0" red="66" type="rgb"/>
+ </Property>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Segoe UI" size="24" style="0"/>
+ </Property>
+ <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+ <Color blue="cc" green="cc" red="cc" type="rgb"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="PLAY"/>
+ <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
+ <Border info="null"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonPlayActionPerformed"/>
+ </Events>
+ </Component>
+ </SubComponents>
+ </Container>
+ </SubComponents>
+</Form>
diff --git a/src/view/SignupUI.java b/src/view/SignupUI.java
@@ -0,0 +1,405 @@
+package view;
+
+import com.formdev.flatlaf.FlatDarkLaf;
+import controller.LoginController;
+import java.util.Date;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+
+/**
+ * GUI for login screen.
+ *
+ * @author Michael Neuper
+ * <a href="mailto:michael@michaelneuper.com">michael@michaelneuper.com</a>
+ */
+public class SignupUI extends javax.swing.JFrame {
+
+ /**
+ * Creates new form Login
+ */
+ public SignupUI() {
+ initComponents();
+ }
+
+ LoginController controller = new LoginController();
+
+ /**
+ * This method is called from within the constructor to initialize the form.
+ * WARNING: Do NOT modify this code. The content of this method is always
+ * regenerated by the Form Editor.
+ */
+ @SuppressWarnings("unchecked")
+ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+ private void initComponents() {
+
+ jPanelWest = new javax.swing.JPanel();
+ jPanelWelcomeText = new javax.swing.JPanel();
+ jLabelWelcome = new javax.swing.JLabel();
+ jPanelLoginText = new javax.swing.JPanel();
+ jLabelLogin = new javax.swing.JLabel();
+ jPanelFields = new javax.swing.JPanel();
+ jLabelUsername = new javax.swing.JLabel();
+ jLabelMobileNumber = new javax.swing.JLabel();
+ jLabelDateOfBirth = new javax.swing.JLabel();
+ jLabelPassword = new javax.swing.JLabel();
+ jLabelEmail = new javax.swing.JLabel();
+ jTextFieldUsername = new javax.swing.JTextField();
+ jTextFieldEmail = new javax.swing.JTextField();
+ jTextFieldMobileNumber = new javax.swing.JTextField();
+ jPasswordField = new javax.swing.JPasswordField();
+ jSeparatorUsername = new javax.swing.JSeparator();
+ jSeparatorEmail = new javax.swing.JSeparator();
+ jSeparatorMobileNumber = new javax.swing.JSeparator();
+ jSeparatorPassword = new javax.swing.JSeparator();
+ jDateChooser1 = new com.toedter.calendar.JDateChooser();
+ jPanelCenter = new javax.swing.JPanel();
+ jLabelCardsIcon = new javax.swing.JLabel();
+ jButtonPlay = new javax.swing.JButton();
+
+ setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
+ setTitle("Sign Up to librejack");
+ setBackground(new java.awt.Color(0, 153, 0));
+ setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
+ setPreferredSize(new java.awt.Dimension(900, 430));
+
+ jPanelWest.setBackground(new java.awt.Color(0, 102, 0));
+ jPanelWest.setPreferredSize(new java.awt.Dimension(415, 430));
+
+ jPanelWelcomeText.setBackground(new java.awt.Color(0, 102, 0));
+ jPanelWelcomeText.setPreferredSize(new java.awt.Dimension(415, 70));
+
+ jLabelWelcome.setFont(new java.awt.Font("Segoe UI", 1, 24)); // NOI18N
+ jLabelWelcome.setForeground(new java.awt.Color(255, 255, 0));
+ jLabelWelcome.setText("WELCOME TO LIBREJACK");
+
+ javax.swing.GroupLayout jPanelWelcomeTextLayout = new javax.swing.GroupLayout(jPanelWelcomeText);
+ jPanelWelcomeText.setLayout(jPanelWelcomeTextLayout);
+ jPanelWelcomeTextLayout.setHorizontalGroup(
+ jPanelWelcomeTextLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelWelcomeTextLayout.createSequentialGroup()
+ .addContainerGap(65, Short.MAX_VALUE)
+ .addComponent(jLabelWelcome)
+ .addGap(63, 63, 63))
+ );
+ jPanelWelcomeTextLayout.setVerticalGroup(
+ jPanelWelcomeTextLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanelWelcomeTextLayout.createSequentialGroup()
+ .addGap(17, 17, 17)
+ .addComponent(jLabelWelcome)
+ .addContainerGap(21, Short.MAX_VALUE))
+ );
+
+ jPanelWest.add(jPanelWelcomeText);
+
+ jPanelLoginText.setBackground(new java.awt.Color(0, 102, 0));
+ jPanelLoginText.setPreferredSize(new java.awt.Dimension(415, 40));
+
+ jLabelLogin.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N
+ jLabelLogin.setForeground(new java.awt.Color(204, 204, 204));
+ jLabelLogin.setText("Sign Up");
+
+ javax.swing.GroupLayout jPanelLoginTextLayout = new javax.swing.GroupLayout(jPanelLoginText);
+ jPanelLoginText.setLayout(jPanelLoginTextLayout);
+ jPanelLoginTextLayout.setHorizontalGroup(
+ jPanelLoginTextLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanelLoginTextLayout.createSequentialGroup()
+ .addGap(178, 178, 178)
+ .addComponent(jLabelLogin)
+ .addContainerGap(171, Short.MAX_VALUE))
+ );
+ jPanelLoginTextLayout.setVerticalGroup(
+ jPanelLoginTextLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanelLoginTextLayout.createSequentialGroup()
+ .addComponent(jLabelLogin)
+ .addGap(0, 15, Short.MAX_VALUE))
+ );
+
+ jPanelWest.add(jPanelLoginText);
+
+ jPanelFields.setBackground(new java.awt.Color(0, 102, 0));
+ jPanelFields.setPreferredSize(new java.awt.Dimension(415, 315));
+
+ jLabelUsername.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+ jLabelUsername.setForeground(new java.awt.Color(204, 204, 204));
+ jLabelUsername.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/user.png"))); // NOI18N
+ jLabelUsername.setText("Username:");
+
+ jLabelMobileNumber.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+ jLabelMobileNumber.setForeground(new java.awt.Color(204, 204, 204));
+ jLabelMobileNumber.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/phone.png"))); // NOI18N
+ jLabelMobileNumber.setText("Mobile Number:");
+
+ jLabelDateOfBirth.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+ jLabelDateOfBirth.setForeground(new java.awt.Color(204, 204, 204));
+ jLabelDateOfBirth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/calendar.png"))); // NOI18N
+ jLabelDateOfBirth.setText("Date of Birth:");
+
+ jLabelPassword.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+ jLabelPassword.setForeground(new java.awt.Color(204, 204, 204));
+ jLabelPassword.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/lock.png"))); // NOI18N
+ jLabelPassword.setText("Password:");
+
+ jLabelEmail.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+ jLabelEmail.setForeground(new java.awt.Color(204, 204, 204));
+ jLabelEmail.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/icons/email.png"))); // NOI18N
+ jLabelEmail.setText("Email:");
+
+ jTextFieldUsername.setBackground(new java.awt.Color(0, 102, 0));
+ jTextFieldUsername.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+ jTextFieldUsername.setForeground(new java.awt.Color(153, 153, 153));
+ jTextFieldUsername.setText("PenguinPancakes69");
+ jTextFieldUsername.setBorder(null);
+ jTextFieldUsername.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
+ jTextFieldUsername.addMouseListener(new java.awt.event.MouseAdapter() {
+ public void mouseClicked(java.awt.event.MouseEvent evt) {
+ jTextFieldUsernameMouseClicked(evt);
+ }
+ });
+
+ jTextFieldEmail.setBackground(new java.awt.Color(0, 102, 0));
+ jTextFieldEmail.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+ jTextFieldEmail.setForeground(new java.awt.Color(153, 153, 153));
+ jTextFieldEmail.setText("john.doe@example.com");
+ jTextFieldEmail.setBorder(null);
+ jTextFieldEmail.addMouseListener(new java.awt.event.MouseAdapter() {
+ public void mouseClicked(java.awt.event.MouseEvent evt) {
+ jTextFieldEmailMouseClicked(evt);
+ }
+ });
+ jTextFieldEmail.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jTextFieldEmailActionPerformed(evt);
+ }
+ });
+
+ jTextFieldMobileNumber.setBackground(new java.awt.Color(0, 102, 0));
+ jTextFieldMobileNumber.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+ jTextFieldMobileNumber.setForeground(new java.awt.Color(153, 153, 153));
+ jTextFieldMobileNumber.setText("082 738 9016");
+ jTextFieldMobileNumber.setBorder(null);
+ jTextFieldMobileNumber.addMouseListener(new java.awt.event.MouseAdapter() {
+ public void mouseClicked(java.awt.event.MouseEvent evt) {
+ jTextFieldMobileNumberMouseClicked(evt);
+ }
+ });
+
+ jPasswordField.setBackground(new java.awt.Color(0, 102, 0));
+ jPasswordField.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+ jPasswordField.setForeground(new java.awt.Color(153, 153, 153));
+ jPasswordField.setText("Password@12345");
+ jPasswordField.setBorder(null);
+ jPasswordField.addMouseListener(new java.awt.event.MouseAdapter() {
+ public void mouseClicked(java.awt.event.MouseEvent evt) {
+ jPasswordFieldMouseClicked(evt);
+ }
+ });
+ jPasswordField.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jPasswordFieldActionPerformed(evt);
+ }
+ });
+
+ jSeparatorUsername.setBackground(new java.awt.Color(204, 204, 204));
+
+ jSeparatorEmail.setBackground(new java.awt.Color(204, 204, 204));
+
+ jSeparatorMobileNumber.setBackground(new java.awt.Color(204, 204, 204));
+
+ jSeparatorPassword.setBackground(new java.awt.Color(204, 204, 204));
+
+ jDateChooser1.setBackground(new java.awt.Color(0, 102, 0));
+ jDateChooser1.setForeground(new java.awt.Color(153, 153, 153));
+ jDateChooser1.setToolTipText("");
+ jDateChooser1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
+
+ javax.swing.GroupLayout jPanelFieldsLayout = new javax.swing.GroupLayout(jPanelFields);
+ jPanelFields.setLayout(jPanelFieldsLayout);
+ jPanelFieldsLayout.setHorizontalGroup(
+ jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanelFieldsLayout.createSequentialGroup()
+ .addGap(40, 40, 40)
+ .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jLabelUsername)
+ .addComponent(jLabelEmail)
+ .addComponent(jLabelMobileNumber)
+ .addComponent(jLabelPassword)
+ .addComponent(jLabelDateOfBirth))
+ .addGap(33, 33, 33)
+ .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addComponent(jSeparatorUsername)
+ .addComponent(jTextFieldUsername)
+ .addComponent(jTextFieldEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
+ .addComponent(jTextFieldMobileNumber)
+ .addComponent(jPasswordField)
+ .addComponent(jSeparatorEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
+ .addComponent(jSeparatorMobileNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
+ .addComponent(jDateChooser1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(jSeparatorPassword))
+ .addContainerGap(40, Short.MAX_VALUE))
+ );
+ jPanelFieldsLayout.setVerticalGroup(
+ jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanelFieldsLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(jLabelUsername)
+ .addComponent(jTextFieldUsername, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGap(4, 4, 4)
+ .addComponent(jSeparatorUsername, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(jLabelEmail)
+ .addComponent(jTextFieldEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGap(4, 4, 4)
+ .addComponent(jSeparatorEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(jLabelMobileNumber)
+ .addComponent(jTextFieldMobileNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jSeparatorMobileNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(10, 10, 10)
+ .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jLabelDateOfBirth)
+ .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGroup(jPanelFieldsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanelFieldsLayout.createSequentialGroup()
+ .addGap(23, 23, 23)
+ .addComponent(jLabelPassword))
+ .addGroup(jPanelFieldsLayout.createSequentialGroup()
+ .addGap(18, 18, 18)
+ .addComponent(jPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jSeparatorPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(100, Short.MAX_VALUE))
+ );
+
+ jPanelWest.add(jPanelFields);
+
+ getContentPane().add(jPanelWest, java.awt.BorderLayout.WEST);
+
+ jPanelCenter.setBackground(new java.awt.Color(0, 153, 51));
+ jPanelCenter.setPreferredSize(new java.awt.Dimension(550, 430));
+
+ jLabelCardsIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/images/hearts_card.png"))); // NOI18N
+
+ jButtonPlay.setBackground(new java.awt.Color(102, 0, 204));
+ jButtonPlay.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N
+ jButtonPlay.setForeground(new java.awt.Color(204, 204, 204));
+ jButtonPlay.setText("PLAY");
+ jButtonPlay.setBorder(null);
+ jButtonPlay.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButtonPlayActionPerformed(evt);
+ }
+ });
+
+ javax.swing.GroupLayout jPanelCenterLayout = new javax.swing.GroupLayout(jPanelCenter);
+ jPanelCenter.setLayout(jPanelCenterLayout);
+ jPanelCenterLayout.setHorizontalGroup(
+ jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanelCenterLayout.createSequentialGroup()
+ .addGroup(jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanelCenterLayout.createSequentialGroup()
+ .addGap(62, 62, 62)
+ .addComponent(jLabelCardsIcon))
+ .addGroup(jPanelCenterLayout.createSequentialGroup()
+ .addGap(164, 164, 164)
+ .addComponent(jButtonPlay, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap(598, Short.MAX_VALUE))
+ );
+ jPanelCenterLayout.setVerticalGroup(
+ jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanelCenterLayout.createSequentialGroup()
+ .addContainerGap(40, Short.MAX_VALUE)
+ .addComponent(jLabelCardsIcon, javax.swing.GroupLayout.PREFERRED_SIZE, 306, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(18, 18, 18)
+ .addComponent(jButtonPlay, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(16, 16, 16))
+ );
+
+ getContentPane().add(jPanelCenter, java.awt.BorderLayout.CENTER);
+
+ pack();
+ }// </editor-fold>//GEN-END:initComponents
+
+ private void jTextFieldEmailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldEmailActionPerformed
+
+ }//GEN-LAST:event_jTextFieldEmailActionPerformed
+
+ private void jButtonPlayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPlayActionPerformed
+ char[] passwordCh = jPasswordField.getPassword();
+ String password = new String(passwordCh); // convert password to string
+ Date selectedDate = jDateChooser1.getDate();
+ if (controller.areAllFieldsValid(
+ jTextFieldEmail.getText(),
+ jTextFieldMobileNumber.getText(),
+ selectedDate,
+ password)) {
+ new MainUI().setVisible(true); // open the game window
+ this.dispose(); // close the login screen
+ }
+ }//GEN-LAST:event_jButtonPlayActionPerformed
+
+ private void jPasswordFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jPasswordFieldActionPerformed
+
+ }//GEN-LAST:event_jPasswordFieldActionPerformed
+
+ private void jTextFieldUsernameMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTextFieldUsernameMouseClicked
+ jTextFieldUsername.setText("");
+ }//GEN-LAST:event_jTextFieldUsernameMouseClicked
+
+ private void jTextFieldEmailMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTextFieldEmailMouseClicked
+ jTextFieldEmail.setText("");
+ }//GEN-LAST:event_jTextFieldEmailMouseClicked
+
+ private void jTextFieldMobileNumberMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTextFieldMobileNumberMouseClicked
+ jTextFieldMobileNumber.setText("");
+ }//GEN-LAST:event_jTextFieldMobileNumberMouseClicked
+
+ private void jPasswordFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPasswordFieldMouseClicked
+ jPasswordField.setText("");
+ }//GEN-LAST:event_jPasswordFieldMouseClicked
+
+ /**
+ * @param args the command line arguments
+ */
+ public static void main(String args[]) {
+ /* Set the FlatDarkLaf look and feel */
+ try {
+ UIManager.setLookAndFeel(new FlatDarkLaf());
+ } catch (UnsupportedLookAndFeelException e) {
+ }
+
+ /* Create and display the form */
+ java.awt.EventQueue.invokeLater(() -> {
+ new SignupUI().setVisible(true);
+ });
+ }
+
+ // Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JButton jButtonPlay;
+ private com.toedter.calendar.JDateChooser jDateChooser1;
+ private javax.swing.JLabel jLabelCardsIcon;
+ private javax.swing.JLabel jLabelDateOfBirth;
+ private javax.swing.JLabel jLabelEmail;
+ private javax.swing.JLabel jLabelLogin;
+ private javax.swing.JLabel jLabelMobileNumber;
+ private javax.swing.JLabel jLabelPassword;
+ private javax.swing.JLabel jLabelUsername;
+ private javax.swing.JLabel jLabelWelcome;
+ private javax.swing.JPanel jPanelCenter;
+ private javax.swing.JPanel jPanelFields;
+ private javax.swing.JPanel jPanelLoginText;
+ private javax.swing.JPanel jPanelWelcomeText;
+ private javax.swing.JPanel jPanelWest;
+ private javax.swing.JPasswordField jPasswordField;
+ private javax.swing.JSeparator jSeparatorEmail;
+ private javax.swing.JSeparator jSeparatorMobileNumber;
+ private javax.swing.JSeparator jSeparatorPassword;
+ private javax.swing.JSeparator jSeparatorUsername;
+ private javax.swing.JTextField jTextFieldEmail;
+ private javax.swing.JTextField jTextFieldMobileNumber;
+ private javax.swing.JTextField jTextFieldUsername;
+ // End of variables declaration//GEN-END:variables
+}