librejack

Blackjack clone written in java
git clone https://github.com/michaelneuper/librejack.git
README | Files | Log | Refs | LICENSE

commit 0368ce9cdc35f1c8dea7db2589d4f92b57e5f5e0
parent ec494618a75d8832ea01bfd8ecb0aab052b16dce
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Sat, 29 Apr 2023 21:35:44 +0200

Create new login screen

Diffstat:
Asrc/view/Login.form | 487+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asrc/view/Login.java | 357+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 844 insertions(+), 0 deletions(-)

diff --git a/src/view/Login.form b/src/view/Login.form @@ -0,0 +1,487 @@ +<?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="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="0" green="99" red="0" type="rgb"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[835, 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,44"/> + </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="cc" green="cc" red="cc" 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="jPanel1"> + <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="jSeparator1" 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="jPasswordField1" max="32767" attributes="0"/> + <Component id="jSeparator2" alignment="0" pref="183" max="32767" attributes="0"/> + <Component id="jSeparator3" alignment="0" pref="183" max="32767" attributes="0"/> + <Component id="jDateChooser1" alignment="1" max="32767" attributes="0"/> + <Component id="jSeparator4" 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="jSeparator1" 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="jSeparator2" 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="jSeparator3" 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="jPasswordField1" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Component id="jSeparator4" min="-2" pref="10" max="-2" attributes="0"/> + <EmptySpace pref="52" 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> + </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="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> + </Component> + <Component class="javax.swing.JPasswordField" name="jPasswordField1"> + <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> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator1"> + <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="jSeparator2"> + <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="jSeparator3"> + <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="jSeparator4"> + <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 max="-2" attributes="0"/> + <Component id="jLabel1" min="-2" pref="324" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="145" max="-2" attributes="0"/> + <Component id="jButton1" min="-2" pref="98" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace pref="220" 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="53" max="32767" attributes="0"/> + <Component id="jLabel1" min="-2" pref="264" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="34" max="-2" attributes="0"/> + <Component id="jButton1" min="-2" pref="50" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="29" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/assets/cards_resized.png"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JButton" name="jButton1"> + <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="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="jButton1ActionPerformed"/> + </Events> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/view/Login.java b/src/view/Login.java @@ -0,0 +1,357 @@ +package view; + +/** + * + * @author michael + */ +public class Login extends javax.swing.JFrame { + + /** + * Creates new form Login + */ + public Login() { + initComponents(); + } + + /** + * 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(); + jPanel1 = 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(); + jPasswordField1 = new javax.swing.JPasswordField(); + jSeparator1 = new javax.swing.JSeparator(); + jSeparator2 = new javax.swing.JSeparator(); + jSeparator3 = new javax.swing.JSeparator(); + jSeparator4 = new javax.swing.JSeparator(); + jDateChooser1 = new com.toedter.calendar.JDateChooser(); + jPanelCenter = new javax.swing.JPanel(); + jLabel1 = new javax.swing.JLabel(); + jButton1 = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + setBackground(new java.awt.Color(0, 153, 0)); + setPreferredSize(new java.awt.Dimension(835, 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(204, 204, 204)); + 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); + + jPanel1.setBackground(new java.awt.Color(0, 102, 0)); + jPanel1.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)); + + 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.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); + + jPasswordField1.setBackground(new java.awt.Color(0, 102, 0)); + jPasswordField1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N + jPasswordField1.setForeground(new java.awt.Color(153, 153, 153)); + jPasswordField1.setText("Password@12345"); + jPasswordField1.setBorder(null); + + jSeparator1.setBackground(new java.awt.Color(204, 204, 204)); + + jSeparator2.setBackground(new java.awt.Color(204, 204, 204)); + + jSeparator3.setBackground(new java.awt.Color(204, 204, 204)); + + jSeparator4.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 jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(40, 40, 40) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabelUsername) + .addComponent(jLabelEmail) + .addComponent(jLabelMobileNumber) + .addComponent(jLabelPassword) + .addComponent(jLabelDateOfBirth)) + .addGap(33, 33, 33) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(jSeparator1) + .addComponent(jTextFieldUsername) + .addComponent(jTextFieldEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE) + .addComponent(jTextFieldMobileNumber) + .addComponent(jPasswordField1) + .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE) + .addComponent(jSeparator3, 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(jSeparator4)) + .addContainerGap(40, Short.MAX_VALUE)) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanel1Layout.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(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanel1Layout.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(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanel1Layout.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(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(10, 10, 10) + .addGroup(jPanel1Layout.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(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(23, 23, 23) + .addComponent(jLabelPassword)) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(18, 18, 18) + .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(52, Short.MAX_VALUE)) + ); + + jPanelWest.add(jPanel1); + + getContentPane().add(jPanelWest, java.awt.BorderLayout.WEST); + + jPanelCenter.setBackground(new java.awt.Color(0, 153, 51)); + jPanelCenter.setPreferredSize(new java.awt.Dimension(550, 430)); + + jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/assets/cards_resized.png"))); // NOI18N + + jButton1.setBackground(new java.awt.Color(0, 102, 0)); + jButton1.setFont(new java.awt.Font("Segoe UI", 0, 24)); // NOI18N + jButton1.setForeground(new java.awt.Color(204, 204, 204)); + jButton1.setText("PLAY"); + jButton1.setBorder(null); + jButton1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButton1ActionPerformed(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() + .addContainerGap() + .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(jPanelCenterLayout.createSequentialGroup() + .addGap(145, 145, 145) + .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addContainerGap(220, Short.MAX_VALUE)) + ); + jPanelCenterLayout.setVerticalGroup( + jPanelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanelCenterLayout.createSequentialGroup() + .addContainerGap(53, Short.MAX_VALUE) + .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 264, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(34, 34, 34) + .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(29, 29, 29)) + ); + + 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 + // TODO add your handling code here: + }//GEN-LAST:event_jTextFieldEmailActionPerformed + + private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jButton1ActionPerformed + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new Login().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jButton1; + private com.toedter.calendar.JDateChooser jDateChooser1; + private javax.swing.JLabel jLabel1; + 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 jPanel1; + private javax.swing.JPanel jPanelCenter; + private javax.swing.JPanel jPanelLoginText; + private javax.swing.JPanel jPanelWelcomeText; + private javax.swing.JPanel jPanelWest; + private javax.swing.JPasswordField jPasswordField1; + private javax.swing.JSeparator jSeparator1; + private javax.swing.JSeparator jSeparator2; + private javax.swing.JSeparator jSeparator3; + private javax.swing.JSeparator jSeparator4; + private javax.swing.JTextField jTextFieldEmail; + private javax.swing.JTextField jTextFieldMobileNumber; + private javax.swing.JTextField jTextFieldUsername; + // End of variables declaration//GEN-END:variables +}