From c928038ac89890e5d280045a0e3ca60ac4b3ff97 Mon Sep 17 00:00:00 2001 From: Jacklyn J Videira Date: Sun, 23 Apr 2017 16:24:43 -0400 Subject: [PATCH] Update Cashflow.java --- src/controller/Cashflow.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/controller/Cashflow.java b/src/controller/Cashflow.java index d47f0ce..2cbd148 100644 --- a/src/controller/Cashflow.java +++ b/src/controller/Cashflow.java @@ -13,6 +13,9 @@ public class Cashflow //private CardStack[] _cards; public GameboardWindow gameboard; public static int numPlayers; + private JFrame frame; + private JWindow sidewindow; + private GameboardWindow window; @@ -122,6 +125,31 @@ public class Cashflow } + } + public void setUpScreen() { + frame = new JFrame("Cashflow"); + frame.setLayout(new FlowLayout()); + window = new GameboardWindow(_board); + + sidewindow = new JWindow(); + sidewindow.setLayout(new GridLayout(5, 5)); + + frame.add(window); + + + frame.pack(); + + frame.setVisible(true); + frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + } + public static void main(String[] args) { + new Cashflow(4); + + } + public Cashflow(int numPlayers) + { + //this.setUpScreen(); // just did this to test the screen + } }