Browse Source

Set Layout SaveStack

feature_solitaer_setup_GamePanel
Alexander Hartung 3 years ago
parent
commit
c5a31c3991
  1. 12
      src/main/java/solitaer/SolitaerGamePanel.java

12
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);

Loading…
Cancel
Save