Advertisement
jdalbey

CollapseGUI API

Oct 8th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. public final class CollapseGUI extends JFrame
  2.  
  3. /** Entry point for the application.
  4. * Constructs the application then calls layoutGUI() and setVisible().
  5. * @param args if provided, the first argument is the name of a file
  6. * containing a predefined board configuration to use as the first
  7. * board when the game begins.
  8. */
  9. public static void main(String[] args) throws FileNotFoundException
  10.  
  11. /** Prepare the GUI before starting the game.
  12. * Initialize the board to a random configuration.
  13. */
  14. public CollapseGUI()
  15.  
  16. /** Prepare the GUI before starting the game with an initial board.
  17. * Read a predefined board configuration with which to start the game.
  18. * @param scan Scanner from which a board configuration is read.
  19. * See assignment for input format.
  20. */
  21. public CollapseGUI(java.util.Scanner scan)
  22.  
  23. /** Place all the Swing widgets in the frame of this GUI.
  24. * Load the default skin.
  25. * Prepare a grid of pieces with a background image.
  26. * Setup the Game and Preference menus.
  27. * @post the GUI is ready to be made visible.
  28. */
  29. public void layoutGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement