|
@ -5,18 +5,19 @@ import java.awt.Dimension; |
|
|
import javax.swing.JFrame; |
|
|
import javax.swing.JFrame; |
|
|
|
|
|
|
|
|
import solitaer.SolitaerGamePanel; |
|
|
import solitaer.SolitaerGamePanel; |
|
|
|
|
|
import solitaer.SolitaerMenue; |
|
|
|
|
|
|
|
|
public class GameWindow extends JFrame { |
|
|
public class GameWindow extends JFrame { |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
private static final long serialVersionUID = 1L; |
|
|
private static final long serialVersionUID = 1L; |
|
|
private final SolitaerGamePanel gamePanel = new SolitaerGamePanel(); |
|
|
private final SolitaerGamePanel gamePanel = new SolitaerGamePanel(); |
|
|
|
|
|
|
|
|
|
|
|
private SolitaerMenue smenue = new SolitaerMenue(); |
|
|
|
|
|
|
|
|
public GameWindow() { |
|
|
public GameWindow() { |
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
gamePanel.setPreferredSize(new Dimension(1180, 780)); |
|
|
gamePanel.setPreferredSize(new Dimension(1180, 780)); |
|
|
|
|
|
this.setJMenuBar(smenue.getMenue()); |
|
|
|
|
|
|
|
|
add(gamePanel); |
|
|
add(gamePanel); |
|
|
pack(); |
|
|
pack(); |
|
|