package src; import javax.swing.JFrame; import javax.swing.SwingUtilities; public class Main { public static void main(String[] args) { SwingUtilities.invokeLater(() -> { JFrame frame = new JFrame("Star Wars Yahtzee"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(new GameView(new GameController(new GameModel()))); frame.pack(); frame.setLocationRelativeTo(null); frame.setVisible(true); frame.setSize(200,200); }); } }