From 0fccd2aba9b4494f43c66e732623baf9fd195cca Mon Sep 17 00:00:00 2001 From: Alexander Hartung Date: Wed, 26 Jan 2022 16:57:10 +0100 Subject: [PATCH] add Image for empty stack --- src/main/java/solitaer/SolitaerGamePanel.java | 3 +++ src/main/java/solitaer/StartStack.java | 3 +-- src/main/java/solitaer/images/empty.png | Bin 0 -> 7063 bytes 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 src/main/java/solitaer/images/empty.png diff --git a/src/main/java/solitaer/SolitaerGamePanel.java b/src/main/java/solitaer/SolitaerGamePanel.java index 73fc4d0..3577a3a 100644 --- a/src/main/java/solitaer/SolitaerGamePanel.java +++ b/src/main/java/solitaer/SolitaerGamePanel.java @@ -19,6 +19,9 @@ public class SolitaerGamePanel extends JPanel { a.addCard(new Card(13, Symbol.Karo, true)); a.addCard(new Card(1, Symbol.Karo, true)); this.add(a); + + StartStack b = new StartStack(200,25); + this.add(b); } diff --git a/src/main/java/solitaer/StartStack.java b/src/main/java/solitaer/StartStack.java index 66a25c1..e2cf44c 100644 --- a/src/main/java/solitaer/StartStack.java +++ b/src/main/java/solitaer/StartStack.java @@ -35,7 +35,6 @@ public class StartStack extends JPanel { this.removeAll(); for(int i = stack.size()-1; i>=0; i-- ) { - System.out.println("for"); this.add(stack.get(i)); } } @@ -45,7 +44,7 @@ public class StartStack extends JPanel { // TODO Auto-generated method stub super.paintComponent(g); if (stack.size() == 0) { - ImageIcon ii = new ImageIcon(getClass().getResource("images/back.png")); + ImageIcon ii = new ImageIcon(getClass().getResource("images/empty.png")); im = ii.getImage(); g.drawImage(im, 0, 0, this.getWidth(), 96, this); } diff --git a/src/main/java/solitaer/images/empty.png b/src/main/java/solitaer/images/empty.png new file mode 100644 index 0000000000000000000000000000000000000000..f6c6284bb9bb498d64b9fdd3529d47fa7773de0a GIT binary patch literal 7063 zcmeHMc{tQv`=3g(L<%LT##pkAF@qVVL3SgPJ$ss!2{U76tZ8|K$gbU*ElUrwWlK>) zB&86_lBX0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