From 01ee9b2600d40a8aaf0b0904642910fdabd8c884 Mon Sep 17 00:00:00 2001 From: Vikramb987 <47336882+Vikramb987@users.noreply.github.com> Date: Sun, 10 Mar 2019 20:49:45 -0600 Subject: [PATCH] Update TaipanShopGUI.java fixed shop prices not changing --- src/TaipanShopGUI.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/TaipanShopGUI.java b/src/TaipanShopGUI.java index e00af07..fbf07a9 100644 --- a/src/TaipanShopGUI.java +++ b/src/TaipanShopGUI.java @@ -370,7 +370,6 @@ public class TaipanShopGUI { } public Stage initializeShop(Stage stage){ - updateStage(); Font size14 = new Font(14.0); Rectangle dialogueRectangle = new Rectangle(); dialogueRectangle.setFill(javafx.scene.paint.Color.WHITE); @@ -754,6 +753,11 @@ public class TaipanShopGUI { stage.setTitle("Shop"); stage.setResizable(false); stage.setScene(root); + + updatePrices(); + defaultTextOut(); + updateStage(); + return stage; }