Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public final class CollapseGUI extends JFrame
- /** Entry point for the application.
- * Constructs the application then calls layoutGUI() and setVisible().
- * @param args if provided, the first argument is the name of a file
- * containing a predefined board configuration to use as the first
- * board when the game begins.
- */
- public static void main(String[] args) throws FileNotFoundException
- /** Prepare the GUI before starting the game.
- * Initialize the board to a random configuration.
- */
- public CollapseGUI()
- /** Prepare the GUI before starting the game with an initial board.
- * Read a predefined board configuration with which to start the game.
- * @param scan Scanner from which a board configuration is read.
- * See assignment for input format.
- */
- public CollapseGUI(java.util.Scanner scan)
- /** Place all the Swing widgets in the frame of this GUI.
- * Load the default skin.
- * Prepare a grid of pieces with a background image.
- * Setup the Game and Preference menus.
- * @post the GUI is ready to be made visible.
- */
- public void layoutGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement