|
|
@ -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); |
|
|
|
} |
|
|
|