Nur die besten Spiele ;3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
682 B

package solitaer;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
public class SolitaerGamePanel extends JPanel {
/**
*
*/
private static final long serialVersionUID = 1L;
public SolitaerGamePanel() {
setLayout(null);
StartStack a = new StartStack(25,25);
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);
}
@Override
protected void paintComponent(Graphics g) {
// TODO Auto-generated method stub
super.paintComponent(g);
g.setColor(Color.green);
g.fillRect(0, 0, this.getWidth(), this.getHeight());
}
}