public void showWord(String word, java.util.List<BoardCell> letterLocations, IPlayer player) { myWordList.add(word); scoreText.setText(player.getScore() + ""); scoreText.paintImmediately(scoreText.getVisibleRect()); myWordList.paintImmediately(myWordList.getVisibleRect()); // myBoardPanel.highlightDice(letterLocations); wordEntryField.clear(); // clear the wordEntryField text }
public void resetScore() { scoreText.setText(0 + ""); scoreText.paintImmediately(scoreText.getVisibleRect()); }