More Do-It-Yourself Java Games: An Introduction to Java Graphics and Event-Driven Programming by Annette Godtland

More Do-It-Yourself Java Games: An Introduction to Java Graphics and Event-Driven Programming by Annette Godtland

Author:Annette Godtland [Godtland, Annette]
Language: eng
Format: epub
Tags: computer programming, java, puzzles, games
Publisher: Godtland Software Corporation
Published: 2014-08-26T05:00:00+00:00


After setting the maximum size for playPanel, loop through all the letter panels of played:

Set each letter panel on played to use panelSize for its size. (Hint: use LetterPanel's resize() method.)

Listing 11-71, from WordBuilder.java

* * *

... private void resizeWindow() { ... Dimension boardSize = new Dimension(paenlSize*COLS, panelSize*ROWS); boardPanel.setMaximumSize(boardSize); for(____________________) { for(____________________) { board[____][____].________________; } } Dimension playSize = new Dimension(panelSize*MAX, panelSize); playPanel.setMaximumSize(playSize); for(______________) { played[_____]._______________; } } ...



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.