|
|
@ -0,0 +1,28 @@ |
|
|
|
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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@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()); |
|
|
|
} |
|
|
|
} |