Package view

Class GameWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class GameWindow extends JFrame
The GameWindow class represents the main window of the game. It extends JFrame and sets up the window properties, including the title, icon, and focus listeners.
See Also:
  • Constructor Details

    • GameWindow

      public GameWindow(GamePanel gamePanel)
      Constructs a GameWindow with the specified GamePanel. Sets the window properties and adds the game panel to the window.
      Parameters:
      gamePanel - the GamePanel to be added to the window