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 0000000..f6c6284 Binary files /dev/null and b/src/main/java/solitaer/images/empty.png differ