From c5a31c3991a952a682b5f007299c6766d71e4476 Mon Sep 17 00:00:00 2001 From: Alexander Hartung Date: Fri, 4 Feb 2022 16:28:19 +0100 Subject: [PATCH] Set Layout SaveStack --- src/main/java/solitaer/SolitaerGamePanel.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/solitaer/SolitaerGamePanel.java b/src/main/java/solitaer/SolitaerGamePanel.java index 84454cd..3aa618b 100644 --- a/src/main/java/solitaer/SolitaerGamePanel.java +++ b/src/main/java/solitaer/SolitaerGamePanel.java @@ -1,8 +1,10 @@ package solitaer; import java.awt.Color; +import java.awt.Font; import java.awt.Graphics; +import javax.swing.JLabel; import javax.swing.JPanel; public class SolitaerGamePanel extends JPanel { @@ -18,7 +20,7 @@ public class SolitaerGamePanel extends JPanel { private CardDeck deck; private MyMouseListener mouseL; - private SaveStack save =new SaveStack(500,250); + private SaveStack save;// =new SaveStack(500,250); private StartStack[] start = new StartStack[7] ; private AblageStack[] ablage = new AblageStack[4]; @@ -70,7 +72,13 @@ public class SolitaerGamePanel extends JPanel { } - //save = new SaveStack(500,250); + int Offset_x_Save = (((IMAGE_WIDTH+OFFSET_STACKS_X)*8)+OFFSET_STACKS_X); + JLabel label = new JLabel(); + label.setText("selected Cards"); + label.setBounds(Offset_x_Save, 100, 200,25); + this.add(label); + + save = new SaveStack(Offset_x_Save,125); this.add(save);