commit 2898f9aa0524d94d71be806d94734401c9a5370a
parent 48e31959664b187dcfd2646aff4746d3abad2ad6
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date: Sun, 12 Feb 2023 19:46:31 +0200
Change layout to absolute
Diffstat:
3 files changed, 150 insertions(+), 176 deletions(-)
diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml
@@ -3,11 +3,8 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
- <file>file:/home/michael/Projects/PAT/librejack/src/model/Person.java</file>
- <file>file:/home/michael/Projects/PAT/librejack/src/model/Dealer.java</file>
- <file>file:/home/michael/Projects/PAT/librejack/src/model/Player.java</file>
- <file>file:/home/michael/Projects/PAT/librejack/src/controller/Controller.java</file>
- <file>file:/home/michael/Projects/PAT/librejack/src/view/GUI.java</file>
+ <file>file:/home/michael/Projects/PAT/librejack/src/view/LoginGUI.java</file>
+ <file>file:/home/michael/Projects/PAT/librejack/src/controller/LoginController.java</file>
</group>
</open-files>
</project-private>
diff --git a/src/view/LoginGUI.form b/src/view/LoginGUI.form
@@ -3,6 +3,9 @@
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="3"/>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[829, 786]"/>
+ </Property>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
@@ -20,98 +23,8 @@
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
- <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="335" max="-2" attributes="0"/>
- <Component id="jLabelWelcome" min="-2" max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace min="-2" pref="60" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="jLabel1" alignment="0" min="-2" pref="137" max="-2" attributes="0"/>
- <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jLabel3" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jLabel4" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jLabelPasswordRequirements" alignment="0" min="-2" pref="205" max="-2" attributes="0"/>
- <Component id="jLabel5" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jLabelPassword" alignment="0" min="-2" max="-2" attributes="0"/>
- <Group type="102" alignment="0" attributes="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="jLabelLogin" alignment="0" min="-2" max="-2" 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="jLabelDateOfBirth" alignment="0" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" pref="95" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="1" attributes="0">
- <Group type="103" groupAlignment="0" max="-2" attributes="0">
- <Component id="jTextFieldUsername" pref="215" max="32767" attributes="0"/>
- <Component id="jTextFieldEmail" alignment="0" max="32767" attributes="0"/>
- <Component id="jTextFieldMobileNumber" alignment="0" max="32767" attributes="0"/>
- </Group>
- <Component id="jPasswordField" min="-2" pref="215" max="-2" attributes="0"/>
- </Group>
- </Group>
- <Component id="jButtonVerify" alignment="0" min="-2" pref="204" max="-2" attributes="0"/>
- </Group>
- </Group>
- </Group>
- <EmptySpace pref="329" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="1" attributes="0">
- <EmptySpace min="-2" pref="33" max="-2" attributes="0"/>
- <Component id="jLabelWelcome" min="-2" pref="105" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="7" max="-2" attributes="0"/>
- <Component id="jLabelLogin" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="separate" 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 type="separate" 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 type="separate" 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 type="separate" max="-2" attributes="0"/>
- <Component id="jLabel5" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="29" max="-2" attributes="0"/>
- <Component id="jLabelDateOfBirth" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="separate" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="jLabelPassword" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="jPasswordField" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" pref="18" max="-2" attributes="0"/>
- <Component id="jLabelPasswordRequirements" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="separate" max="-2" attributes="0"/>
- <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="unrelated" max="-2" attributes="0"/>
- <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="unrelated" max="-2" attributes="0"/>
- <Component id="jLabel3" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="unrelated" max="-2" attributes="0"/>
- <Component id="jLabel4" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="74" max="-2" attributes="0"/>
- <Component id="jButtonVerify" min="-2" pref="86" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="68" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
+ <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout">
+ <Property name="useNullLayout" type="boolean" value="false"/>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabelWelcome">
@@ -121,6 +34,11 @@
</Property>
<Property name="text" type="java.lang.String" value="WELCOME TO LIBREJACK!"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="235" y="33" width="-1" height="105"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabelLogin">
<Properties>
@@ -129,6 +47,11 @@
</Property>
<Property name="text" type="java.lang.String" value="Login"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="145" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabelEmail">
<Properties>
@@ -137,6 +60,11 @@
</Property>
<Property name="text" type="java.lang.String" value="Email:"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="260" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabelMobileNumber">
<Properties>
@@ -145,6 +73,11 @@
</Property>
<Property name="text" type="java.lang.String" value="Mobile number:"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="306" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabelUsername">
<Properties>
@@ -153,6 +86,11 @@
</Property>
<Property name="text" type="java.lang.String" value="Username:"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="213" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabelPassword">
<Properties>
@@ -161,6 +99,11 @@
</Property>
<Property name="text" type="java.lang.String" value="Password:"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="442" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JTextField" name="jTextFieldUsername">
<Properties>
@@ -169,6 +112,11 @@
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldUsernameActionPerformed"/>
</Events>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="297" y="216" width="215" height="26"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JPasswordField" name="jPasswordField">
<Properties>
@@ -177,31 +125,61 @@
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jPasswordFieldActionPerformed"/>
</Events>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="297" y="446" width="215" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabelPasswordRequirements">
<Properties>
<Property name="text" type="java.lang.String" value="Password requires at least:"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="487" width="205" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="text" type="java.lang.String" value="- 10 characters"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="522" width="137" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="text" type="java.lang.String" value="- 1 uppercase and lowercase letter"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="551" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabel3">
<Properties>
<Property name="text" type="java.lang.String" value="- 1 number"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="580" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabel4">
<Properties>
<Property name="text" type="java.lang.String" value="- 1 special character"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="609" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JButton" name="jButtonVerify">
<Properties>
@@ -213,11 +191,21 @@
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonVerifyActionPerformed"/>
</Events>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="700" width="204" height="86"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JTextField" name="jTextFieldEmail">
<Properties>
- <Property name="text" type="java.lang.String" value="johndoe@example.com"/>
+ <Property name="text" type="java.lang.String" value="john.doe@example.com"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="297" y="263" width="215" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JTextField" name="jTextFieldMobileNumber">
<Properties>
@@ -226,11 +214,21 @@
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextFieldMobileNumberActionPerformed"/>
</Events>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="297" y="306" width="215" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabel5">
<Properties>
<Property name="text" type="java.lang.String" value="Must be a valid South African number"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="352" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabelDateOfBirth">
<Properties>
@@ -239,6 +237,33 @@
</Property>
<Property name="text" type="java.lang.String" value="Date of birth:"/>
</Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="60" y="398" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
</Component>
+ <Container class="javax.swing.JPanel" name="jPanel1">
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="43" y="15" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
+
+ <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout">
+ <Property name="useNullLayout" type="boolean" value="false"/>
+ </Layout>
+ </Container>
+ <Container class="javax.swing.JPanel" name="jPanel2">
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
+ <AbsoluteConstraints x="454" y="735" width="-1" height="-1"/>
+ </Constraint>
+ </Constraints>
+
+ <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout">
+ <Property name="useNullLayout" type="boolean" value="false"/>
+ </Layout>
+ </Container>
</SubComponents>
</Form>
diff --git a/src/view/LoginGUI.java b/src/view/LoginGUI.java
@@ -44,26 +44,36 @@ public class LoginGUI extends javax.swing.JFrame {
jTextFieldMobileNumber = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jLabelDateOfBirth = new javax.swing.JLabel();
+ jPanel1 = new javax.swing.JPanel();
+ jPanel2 = new javax.swing.JPanel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
+ setMinimumSize(new java.awt.Dimension(829, 786));
+ getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jLabelWelcome.setFont(new java.awt.Font("Dialog", 1, 48)); // NOI18N
jLabelWelcome.setText("WELCOME TO LIBREJACK!");
+ getContentPane().add(jLabelWelcome, new org.netbeans.lib.awtextra.AbsoluteConstraints(235, 33, -1, 105));
jLabelLogin.setFont(new java.awt.Font("Dialog", 1, 36)); // NOI18N
jLabelLogin.setText("Login");
+ getContentPane().add(jLabelLogin, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 145, -1, -1));
jLabelEmail.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabelEmail.setText("Email:");
+ getContentPane().add(jLabelEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 260, -1, -1));
jLabelMobileNumber.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabelMobileNumber.setText("Mobile number:");
+ getContentPane().add(jLabelMobileNumber, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 306, -1, -1));
jLabelUsername.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabelUsername.setText("Username:");
+ getContentPane().add(jLabelUsername, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 213, -1, -1));
jLabelPassword.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabelPassword.setText("Password:");
+ getContentPane().add(jLabelPassword, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 442, -1, -1));
jTextFieldUsername.setText("PenguinPancakes69");
jTextFieldUsername.addActionListener(new java.awt.event.ActionListener() {
@@ -71,6 +81,7 @@ public class LoginGUI extends javax.swing.JFrame {
jTextFieldUsernameActionPerformed(evt);
}
});
+ getContentPane().add(jTextFieldUsername, new org.netbeans.lib.awtextra.AbsoluteConstraints(297, 216, 215, 26));
jPasswordField.setText("password123");
jPasswordField.addActionListener(new java.awt.event.ActionListener() {
@@ -78,16 +89,22 @@ public class LoginGUI extends javax.swing.JFrame {
jPasswordFieldActionPerformed(evt);
}
});
+ getContentPane().add(jPasswordField, new org.netbeans.lib.awtextra.AbsoluteConstraints(297, 446, 215, -1));
jLabelPasswordRequirements.setText("Password requires at least:");
+ getContentPane().add(jLabelPasswordRequirements, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 487, 205, -1));
jLabel1.setText("- 10 characters");
+ getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 522, 137, -1));
jLabel2.setText("- 1 uppercase and lowercase letter");
+ getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 551, -1, -1));
jLabel3.setText("- 1 number");
+ getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 580, -1, -1));
jLabel4.setText("- 1 special character");
+ getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 609, -1, -1));
jButtonVerify.setFont(new java.awt.Font("Dialog", 1, 48)); // NOI18N
jButtonVerify.setText("PLAY");
@@ -96,8 +113,10 @@ public class LoginGUI extends javax.swing.JFrame {
jButtonVerifyActionPerformed(evt);
}
});
+ getContentPane().add(jButtonVerify, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 700, 204, 86));
- jTextFieldEmail.setText("johndoe@example.com");
+ jTextFieldEmail.setText("john.doe@example.com");
+ getContentPane().add(jTextFieldEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(297, 263, 215, -1));
jTextFieldMobileNumber.setText("082 738 9016");
jTextFieldMobileNumber.addActionListener(new java.awt.event.ActionListener() {
@@ -105,89 +124,20 @@ public class LoginGUI extends javax.swing.JFrame {
jTextFieldMobileNumberActionPerformed(evt);
}
});
+ getContentPane().add(jTextFieldMobileNumber, new org.netbeans.lib.awtextra.AbsoluteConstraints(297, 306, 215, -1));
jLabel5.setText("Must be a valid South African number");
+ getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 352, -1, -1));
jLabelDateOfBirth.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
jLabelDateOfBirth.setText("Date of birth:");
+ getContentPane().add(jLabelDateOfBirth, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 398, -1, -1));
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- getContentPane().setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGap(335, 335, 335)
- .addComponent(jLabelWelcome))
- .addGroup(layout.createSequentialGroup()
- .addGap(60, 60, 60)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel2)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jLabelPasswordRequirements, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel5)
- .addComponent(jLabelPassword)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabelLogin)
- .addComponent(jLabelUsername)
- .addComponent(jLabelEmail)
- .addComponent(jLabelMobileNumber)
- .addComponent(jLabelDateOfBirth))
- .addGap(95, 95, 95)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(jTextFieldUsername, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)
- .addComponent(jTextFieldEmail)
- .addComponent(jTextFieldMobileNumber))
- .addComponent(jPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addComponent(jButtonVerify, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE))))
- .addContainerGap(329, Short.MAX_VALUE))
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
- .addGap(33, 33, 33)
- .addComponent(jLabelWelcome, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(7, 7, 7)
- .addComponent(jLabelLogin)
- .addGap(18, 18, 18)
- .addGroup(layout.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(18, 18, 18)
- .addGroup(layout.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(18, 18, 18)
- .addGroup(layout.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))
- .addGap(18, 18, 18)
- .addComponent(jLabel5)
- .addGap(29, 29, 29)
- .addComponent(jLabelDateOfBirth)
- .addGap(18, 18, 18)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabelPassword)
- .addComponent(jPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(18, 18, 18)
- .addComponent(jLabelPasswordRequirements)
- .addGap(18, 18, 18)
- .addComponent(jLabel1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel2)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel4)
- .addGap(74, 74, 74)
- .addComponent(jButtonVerify, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(68, 68, 68))
- );
+ jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
+ getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(43, 15, -1, -1));
+
+ jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
+ getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(454, 735, -1, -1));
pack();
}// </editor-fold>//GEN-END:initComponents
@@ -266,6 +216,8 @@ public class LoginGUI extends javax.swing.JFrame {
private javax.swing.JLabel jLabelPasswordRequirements;
private javax.swing.JLabel jLabelUsername;
private javax.swing.JLabel jLabelWelcome;
+ private javax.swing.JPanel jPanel1;
+ private javax.swing.JPanel jPanel2;
private javax.swing.JPasswordField jPasswordField;
private javax.swing.JTextField jTextFieldEmail;
private javax.swing.JTextField jTextFieldMobileNumber;