Java Reference
In-Depth Information
14.2
Add a text area to the GUI which displays the history of the game by displaying
the moves made, one per line. It should be scrollable and cleared if the game
is reset.
14.3
Add a menu to the GUI. There should be menu items 'Save' and 'Load'. On
selecting them the current state of the game (the current configuration) is
saved or a saved game is loaded and displayed, respectively. The files to save
to or load from should be user selectable. Make sure that boards of different
size can be handled.
Figure 14.4 Sketch of the GUI for Exercise 14.6
Figure 14.5 Sketch of the GUI for Exercise 14.7
Search WWH ::




Custom Search