librejack

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

commit 7183df93bb3d938092b91539919eb7da7873821b
parent 01ddc271cd1c52a0528c8cb046f33dc6b34a2f77
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Sun, 16 Oct 2022 22:14:28 +0200

update GUI

Diffstat:
Msrc/view/GUI.form | 3+++
Msrc/view/GUI.java | 9+++++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/view/GUI.form b/src/view/GUI.form @@ -72,6 +72,9 @@ <Properties> <Property name="text" type="java.lang.String" value="STAND"/> </Properties> + <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"/> diff --git a/src/view/GUI.java b/src/view/GUI.java @@ -65,6 +65,11 @@ public class GUI extends javax.swing.JFrame { getContentPane().add(jButtonDouble, new org.netbeans.lib.awtextra.AbsoluteConstraints(960, 510, 190, 110)); jButtonStand.setText("STAND"); + jButtonStand.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonStandActionPerformed(evt); + } + }); getContentPane().add(jButtonStand, new org.netbeans.lib.awtextra.AbsoluteConstraints(960, 340, 190, 110)); jButtonHit.setText("HIT"); @@ -116,6 +121,10 @@ public class GUI extends javax.swing.JFrame { jLabelCurrentBet.setText("Current Bet: " + Double.toString(game.getBet())); }//GEN-LAST:event_jButtonBetAmountActionPerformed + private void jButtonStandActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonStandActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jButtonStandActionPerformed + /** * @param args the command line arguments */