Class Window

java.lang.Object
it.polimi.ingsw.Client.GUI.Window

public class Window extends Object
Window creates the top-level container (Java Swing component) onto which the game will be rendered
  • Field Details

    • frame

      private final JFrame frame
      Frame that will contain GUI's game version
  • Constructor Details

    • Window

      public Window()
  • Method Details

    • changeView

      public void changeView(JComponent newView)
      Remove all previous frame's contents and add a new JComponent
      Parameters:
      newView - Component that will be drawn inside the frame
    • getFrame

      public JFrame getFrame()
      Returns:
      GUI'S frame