//members private 3 JButtons, rules, play, and exit. One clicks rules to see the rules of the game, play to play a game of Craps, and exit to quit the program. private Craps game, an object of the game Craps. private int numberOfGames, how many games have been played private int numberOfWins, how many wins there were of the number of games played This class extends a JFrame and implements the ActionListener Interface //methods constructor PRECONDITION: none INPUT: none PROCESS: This creates the interface which extends a JFrame and implements an ActionListener. One creates the 3 JButtons, puts them in the JFrame, and adds them to the actionListener (this). It also instantiates the object game, and initializes both numberOfGames and numberOfWins to be zero. OUTPUT: none POSTCONDITION: The 3 JButtons have been created and are being listened to by the ActionListener. The game has been created, and the numberOfGames and numberOfWins are set to zero. actionPerformed PRECONDITION: none, except one of the 3 JButtons have been clicked INPUT: ActionEvent, a clicking of one of the 3 JButtons PROCESS: If the JButton rules has been clicked, it calls the method rules of game. If the JButton plays has been clicked, it calls the method play of games. It increments the numberOfGames by one, and if plays returns a value of true, it also increments the numberOfWins by one. If the JButton exit has been clicked, it outputs, via a JOptionPane.showMessageDialog, the number of wins and number of games played, and exits the program via a System.exit(0). OUTPUT: none POSTCONDITION numberOfGames and numberOfWins could have been modified. One of the methods of game might have been called.