librejack

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

commit f74340a3b387515103ab445c4ea891800bc05c15
parent 6a93b711e4c913c8eabaffb609990dd76eb292fe
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Sun,  9 Oct 2022 16:29:40 +0200

update GUI.java

Diffstat:
Msrc/view/GUI.form | 16+++++++++-------
Msrc/view/GUI.java | 31+++++++++++++++++++++----------
2 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/src/view/GUI.form b/src/view/GUI.form @@ -48,11 +48,13 @@ </Container> <Component class="javax.swing.JLabel" name="jLabelBalance"> <Properties> - <Property name="text" type="java.lang.String" value="Balance"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor"> + <Connection code="&quot;Balance: &quot;" 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="30" y="670" width="220" height="90"/> + <AbsoluteConstraints x="40" y="40" width="220" height="90"/> </Constraint> </Constraints> </Component> @@ -62,7 +64,7 @@ </AuxValues> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="280" y="670" width="230" height="90"/> + <AbsoluteConstraints x="40" y="640" width="230" height="90"/> </Constraint> </Constraints> @@ -82,7 +84,7 @@ </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="280" y="630" width="230" height="30"/> + <AbsoluteConstraints x="40" y="610" width="230" height="30"/> </Constraint> </Constraints> </Component> @@ -92,7 +94,7 @@ </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="610" y="650" width="190" height="110"/> + <AbsoluteConstraints x="1010" y="500" width="190" height="110"/> </Constraint> </Constraints> </Component> @@ -102,7 +104,7 @@ </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="830" y="650" width="190" height="110"/> + <AbsoluteConstraints x="1010" y="340" width="190" height="110"/> </Constraint> </Constraints> </Component> @@ -112,7 +114,7 @@ </Properties> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="1050" y="650" width="190" height="110"/> + <AbsoluteConstraints x="1010" y="180" width="190" height="110"/> </Constraint> </Constraints> </Component> diff --git a/src/view/GUI.java b/src/view/GUI.java @@ -1,7 +1,18 @@ /* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. + * Copyright (C) 2022 michael + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package view; @@ -53,26 +64,26 @@ public class GUI extends javax.swing.JFrame { getContentPane().add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 110, -1, -1)); - jLabelBalance.setText("Balance"); - getContentPane().add(jLabelBalance, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 670, 220, 90)); + jLabelBalance.setText("Balance: "); + getContentPane().add(jLabelBalance, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 40, 220, 90)); jTextAreaBetAmount.setColumns(20); jTextAreaBetAmount.setRows(5); jScrollPane1.setViewportView(jTextAreaBetAmount); - getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 670, 230, 90)); + getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 640, 230, 90)); jLabelEnterBet.setText("Place a bet"); - getContentPane().add(jLabelEnterBet, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 630, 230, 30)); + getContentPane().add(jLabelEnterBet, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 610, 230, 30)); jButtonDouble.setText("DOUBLE"); - getContentPane().add(jButtonDouble, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 650, 190, 110)); + getContentPane().add(jButtonDouble, new org.netbeans.lib.awtextra.AbsoluteConstraints(1010, 500, 190, 110)); jButtonStand.setText("STAND"); - getContentPane().add(jButtonStand, new org.netbeans.lib.awtextra.AbsoluteConstraints(830, 650, 190, 110)); + getContentPane().add(jButtonStand, new org.netbeans.lib.awtextra.AbsoluteConstraints(1010, 340, 190, 110)); jButtonHit.setText("HIT"); - getContentPane().add(jButtonHit, new org.netbeans.lib.awtextra.AbsoluteConstraints(1050, 650, 190, 110)); + getContentPane().add(jButtonHit, new org.netbeans.lib.awtextra.AbsoluteConstraints(1010, 180, 190, 110)); pack(); }// </editor-fold>//GEN-END:initComponents