librejack

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

commit ca3fe4e0e2c0c3ba12a244a337ea0038a1e0cdba
parent af4d02db8d76df3b7f98ae051697845f06ec5903
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Mon, 17 Oct 2022 15:58:03 +0200

remove absoluteLayout

Diffstat:
Msrc/view/GUI.form | 208+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
Msrc/view/GUI.java | 115++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------
2 files changed, 222 insertions(+), 101 deletions(-)

diff --git a/src/view/GUI.form b/src/view/GUI.form @@ -22,19 +22,136 @@ <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,3,19,0,0,5,2"/> </AuxValues> - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> - <Property name="useNullLayout" type="boolean" value="false"/> + <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="60" pref="60" max="-2" attributes="0"/> + <Component id="jLabelBalance" min="-2" pref="220" max="-2" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <EmptySpace min="60" pref="60" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabelCurrentBet" min="-2" pref="200" max="-2" attributes="0"/> + <Component id="jButtonBetAmount" min="-2" pref="220" max="-2" attributes="0"/> + </Group> + <EmptySpace min="140" pref="140" max="-2" attributes="0"/> + <Component id="jButtonDeal" min="-2" pref="460" max="-2" attributes="0"/> + <EmptySpace min="80" pref="80" max="-2" attributes="0"/> + <Component id="jButtonDouble" min="-2" pref="190" max="-2" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <EmptySpace min="1132" pref="1132" max="-2" attributes="0"/> + <Component id="jButtonExit" min="-2" pref="120" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="70" pref="70" max="-2" attributes="0"/> + <Component id="jLabelDisplayDealerHand" min="-2" pref="440" max="-2" attributes="0"/> + <EmptySpace min="20" pref="20" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabelPlayerHand" min="-2" pref="210" max="-2" attributes="0"/> + <Group type="102" attributes="0"> + <Component id="jLabelDisplayPlayerHand" min="-2" pref="400" max="-2" attributes="0"/> + <EmptySpace min="30" pref="30" max="-2" attributes="0"/> + <Component id="jButtonStand" min="-2" pref="190" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="70" max="-2" attributes="0"/> + <Group type="103" groupAlignment="1" attributes="0"> + <Component id="jLabelResult" min="-2" pref="894" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <Component id="jLabelDealerHand" min="-2" pref="270" max="-2" attributes="0"/> + <EmptySpace min="20" pref="20" max="-2" attributes="0"/> + <Component id="jLabelDealerHandValue" min="-2" pref="80" max="-2" attributes="0"/> + <EmptySpace min="270" pref="270" max="-2" attributes="0"/> + <Component id="jPanel3" min="-2" max="-2" attributes="0"/> + <EmptySpace min="150" pref="150" max="-2" attributes="0"/> + <Component id="jButtonHit" min="-2" pref="190" max="-2" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="703" max="-2" attributes="0"/> + <Component id="jLabelPlayerHandValue" min="-2" pref="60" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + </Group> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="24" max="-2" attributes="0"/> + <Component id="jLabelResult" min="-2" pref="130" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Component id="jPanel3" min="-2" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Component id="jLabelPlayerHandValue" min="-2" pref="40" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="40" max="-2" attributes="0"/> + <Component id="jLabelPlayerHand" min="-2" pref="30" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + </Group> + </Group> + </Group> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabelDealerHand" alignment="1" min="-2" pref="30" max="-2" attributes="0"/> + <Component id="jButtonHit" alignment="1" min="-2" pref="110" max="-2" attributes="0"/> + <Component id="jLabelDealerHandValue" alignment="1" min="-2" pref="40" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabelDisplayDealerHand" min="-2" pref="160" max="-2" attributes="0"/> + <Group type="102" attributes="0"> + <EmptySpace min="10" pref="10" max="-2" attributes="0"/> + <Component id="jLabelDisplayPlayerHand" min="-2" pref="150" max="-2" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <EmptySpace min="50" pref="50" max="-2" attributes="0"/> + <Component id="jButtonStand" min="-2" pref="110" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace min="20" pref="20" max="-2" attributes="0"/> + <Component id="jLabelBalance" min="-2" pref="40" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="10" pref="10" max="-2" attributes="0"/> + <Component id="jLabelCurrentBet" min="-2" pref="50" max="-2" attributes="0"/> + <EmptySpace min="10" pref="10" max="-2" attributes="0"/> + <Component id="jButtonBetAmount" min="-2" pref="60" max="-2" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <EmptySpace min="60" pref="60" max="-2" attributes="0"/> + <Component id="jButtonDeal" min="-2" pref="120" max="-2" attributes="0"/> + </Group> + <Component id="jButtonDouble" min="-2" pref="120" max="-2" attributes="0"/> + </Group> + <EmptySpace min="23" pref="23" max="-2" attributes="0"/> + <Component id="jButtonExit" min="-2" pref="50" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> </Layout> <SubComponents> <Container class="javax.swing.JPanel" name="jPanel3"> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="710" y="110" width="-1" height="-1"/> - </Constraint> - </Constraints> <Layout> <DimensionLayout dim="0"> @@ -58,11 +175,6 @@ <Connection code="&quot;Balance: &quot; + game.getBalance()" type="code"/> </Property> </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="60" y="470" width="220" height="40"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JButton" name="jButtonDouble"> <Properties> @@ -74,11 +186,6 @@ <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonDoubleActionPerformed"/> </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="960" y="510" width="190" height="120"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JButton" name="jButtonStand"> <Properties> @@ -90,11 +197,6 @@ <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonStandActionPerformed"/> </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="960" y="340" width="190" height="110"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JButton" name="jButtonHit"> <Properties> @@ -106,11 +208,6 @@ <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonHitActionPerformed"/> </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="960" y="180" width="190" height="110"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JButton" name="jButtonDeal"> <Properties> @@ -122,11 +219,6 @@ <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonDealActionPerformed"/> </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="420" y="570" width="460" height="120"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JButton" name="jButtonBetAmount"> <Properties> @@ -138,11 +230,6 @@ <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonBetAmountActionPerformed"/> </Events> - <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="220" height="60"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabelCurrentBet"> <Properties> @@ -153,11 +240,6 @@ <Connection code="&quot;Current Bet: &quot; + game.getBet()" type="code"/> </Property> </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="60" y="520" width="200" height="50"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabelResult"> <Properties> @@ -168,18 +250,8 @@ <Connection code="game.checkWhoWins()" type="code"/> </Property> </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="120" y="30" width="1120" height="130"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabelDisplayDealerHand"> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="70" y="290" width="440" height="160"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabelDisplayPlayerHand"> <Properties> @@ -187,11 +259,6 @@ <Connection code="game.displayPlayerHand()" type="code"/> </Property> </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="530" y="300" width="400" height="150"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabelDealerHand"> <Properties> @@ -200,11 +267,6 @@ </Property> <Property name="text" type="java.lang.String" value="Dealer&apos;s Hand:"/> </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="70" y="250" width="270" height="30"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabelPlayerHand"> <Properties> @@ -213,11 +275,6 @@ </Property> <Property name="text" type="java.lang.String" value="Your Hand:"/> </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="490" y="250" width="210" height="30"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JButton" name="jButtonExit"> <Properties> @@ -226,11 +283,6 @@ <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonExitActionPerformed"/> </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="1132" y="713" width="120" height="50"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabelDealerHandValue"> <Properties> @@ -238,11 +290,6 @@ <Font name="Dialog" size="36" style="1"/> </Property> </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="360" y="247" width="80" height="40"/> - </Constraint> - </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabelPlayerHandValue"> <Properties> @@ -250,11 +297,6 @@ <Font name="Dialog" size="36" style="1"/> </Property> </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="720" y="250" width="60" height="40"/> - </Constraint> - </Constraints> </Component> </SubComponents> </Form> diff --git a/src/view/GUI.java b/src/view/GUI.java @@ -47,7 +47,6 @@ public class GUI extends javax.swing.JFrame { setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("librejack"); setForeground(new java.awt.Color(0, 102, 0)); - getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); @@ -60,11 +59,8 @@ public class GUI extends javax.swing.JFrame { .addGap(0, 100, Short.MAX_VALUE) ); - getContentPane().add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 110, -1, -1)); - jLabelBalance.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabelBalance.setText("Balance: " + game.getBalance()); - getContentPane().add(jLabelBalance, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 470, 220, 40)); jButtonDouble.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N jButtonDouble.setText("DOUBLE DOWN"); @@ -73,7 +69,6 @@ public class GUI extends javax.swing.JFrame { jButtonDoubleActionPerformed(evt); } }); - getContentPane().add(jButtonDouble, new org.netbeans.lib.awtextra.AbsoluteConstraints(960, 510, 190, 120)); jButtonStand.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N jButtonStand.setText("STAND"); @@ -82,7 +77,6 @@ public class GUI extends javax.swing.JFrame { jButtonStandActionPerformed(evt); } }); - getContentPane().add(jButtonStand, new org.netbeans.lib.awtextra.AbsoluteConstraints(960, 340, 190, 110)); jButtonHit.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N jButtonHit.setText("HIT"); @@ -91,7 +85,6 @@ public class GUI extends javax.swing.JFrame { jButtonHitActionPerformed(evt); } }); - getContentPane().add(jButtonHit, new org.netbeans.lib.awtextra.AbsoluteConstraints(960, 180, 190, 110)); jButtonDeal.setFont(new java.awt.Font("Dialog", 1, 48)); // NOI18N jButtonDeal.setText("DEAL"); @@ -100,7 +93,6 @@ public class GUI extends javax.swing.JFrame { jButtonDealActionPerformed(evt); } }); - getContentPane().add(jButtonDeal, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 570, 460, 120)); jButtonBetAmount.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jButtonBetAmount.setText("Change Bet Amount"); @@ -109,27 +101,20 @@ public class GUI extends javax.swing.JFrame { jButtonBetAmountActionPerformed(evt); } }); - getContentPane().add(jButtonBetAmount, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 580, 220, 60)); jLabelCurrentBet.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabelCurrentBet.setText("Current Bet: " + game.getBet()); - getContentPane().add(jLabelCurrentBet, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 520, 200, 50)); jLabelResult.setFont(new java.awt.Font("Dialog", 1, 48)); // NOI18N jLabelResult.setText(game.checkWhoWins()); - getContentPane().add(jLabelResult, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 30, 1120, 130)); - getContentPane().add(jLabelDisplayDealerHand, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 290, 440, 160)); jLabelDisplayPlayerHand.setText(game.displayPlayerHand()); - getContentPane().add(jLabelDisplayPlayerHand, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 300, 400, 150)); jLabelDealerHand.setFont(new java.awt.Font("Dialog", 1, 36)); // NOI18N jLabelDealerHand.setText("Dealer's Hand:"); - getContentPane().add(jLabelDealerHand, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 250, 270, 30)); jLabelPlayerHand.setFont(new java.awt.Font("Dialog", 1, 36)); // NOI18N jLabelPlayerHand.setText("Your Hand:"); - getContentPane().add(jLabelPlayerHand, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 250, 210, 30)); jButtonExit.setText("EXIT"); jButtonExit.addActionListener(new java.awt.event.ActionListener() { @@ -137,13 +122,107 @@ public class GUI extends javax.swing.JFrame { jButtonExitActionPerformed(evt); } }); - getContentPane().add(jButtonExit, new org.netbeans.lib.awtextra.AbsoluteConstraints(1132, 713, 120, 50)); jLabelDealerHandValue.setFont(new java.awt.Font("Dialog", 1, 36)); // NOI18N - getContentPane().add(jLabelDealerHandValue, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 247, 80, 40)); jLabelPlayerHandValue.setFont(new java.awt.Font("Dialog", 1, 36)); // NOI18N - getContentPane().add(jLabelPlayerHandValue, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 250, 60, 40)); + + 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(60, 60, 60) + .addComponent(jLabelBalance, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(layout.createSequentialGroup() + .addGap(60, 60, 60) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabelCurrentBet, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jButtonBetAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(140, 140, 140) + .addComponent(jButtonDeal, javax.swing.GroupLayout.PREFERRED_SIZE, 460, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(80, 80, 80) + .addComponent(jButtonDouble, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(layout.createSequentialGroup() + .addGap(1132, 1132, 1132) + .addComponent(jButtonExit, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(layout.createSequentialGroup() + .addGap(70, 70, 70) + .addComponent(jLabelDisplayDealerHand, javax.swing.GroupLayout.PREFERRED_SIZE, 440, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(20, 20, 20) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabelPlayerHand, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(layout.createSequentialGroup() + .addComponent(jLabelDisplayPlayerHand, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(30, 30, 30) + .addComponent(jButtonStand, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)))) + .addGroup(layout.createSequentialGroup() + .addGap(70, 70, 70) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(jLabelResult, javax.swing.GroupLayout.PREFERRED_SIZE, 894, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addComponent(jLabelDealerHand, javax.swing.GroupLayout.PREFERRED_SIZE, 270, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(20, 20, 20) + .addComponent(jLabelDealerHandValue, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(270, 270, 270) + .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(150, 150, 150) + .addComponent(jButtonHit, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(layout.createSequentialGroup() + .addGap(703, 703, 703) + .addComponent(jLabelPlayerHandValue, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))))) + .addContainerGap()) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(24, 24, 24) + .addComponent(jLabelResult, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jLabelPlayerHandValue, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)) + .addGroup(layout.createSequentialGroup() + .addGap(40, 40, 40) + .addComponent(jLabelPlayerHand, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabelDealerHand, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jButtonHit, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabelDealerHandValue, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabelDisplayDealerHand, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(layout.createSequentialGroup() + .addGap(10, 10, 10) + .addComponent(jLabelDisplayPlayerHand, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(layout.createSequentialGroup() + .addGap(50, 50, 50) + .addComponent(jButtonStand, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addGap(20, 20, 20) + .addComponent(jLabelBalance, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(10, 10, 10) + .addComponent(jLabelCurrentBet, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(10, 10, 10) + .addComponent(jButtonBetAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(layout.createSequentialGroup() + .addGap(60, 60, 60) + .addComponent(jButtonDeal, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addComponent(jButtonDouble, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(23, 23, 23) + .addComponent(jButtonExit, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) + ); pack(); }// </editor-fold>//GEN-END:initComponents