Package it.polimi.ingsw.Client.GUI
Class Window
java.lang.Object
it.polimi.ingsw.Client.GUI.Window
Window creates the top-level container (Java Swing component) onto which the game will be rendered
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeView
(JComponent newView) Remove all previous frame's contents and add a new JComponentgetFrame()
-
Field Details
-
frame
Frame that will contain GUI's game version
-
-
Constructor Details
-
Window
public Window()
-
-
Method Details
-
changeView
Remove all previous frame's contents and add a new JComponent- Parameters:
newView
- Component that will be drawn inside the frame
-
getFrame
- Returns:
- GUI'S frame
-