/** Sets the options. */ public void setOptions() { _optionsDialog.setVisible(false); _gameOptions.put("brickCount", _optionsDialog.getBrickCount()); _gameOptions.put("hitsToRemoveBrick", _optionsDialog.getHitsToRemoveBrick()); _gameOptions.put("ballsPerLevel", _optionsDialog.getBallsPerLevel()); _gameOptions.put("nextLevelSpeedJump", _optionsDialog.getLevelSpeedup()); resetGame(); repaint(); }
protected void onOptions() { if (JOptionPane.showConfirmDialog( new JFrame(), "This will reset any current games. Continue?", "Options Change", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) { _optionsDialog = new OptionsDialog(this); _optionsDialog.setVisible(true); } }
/** Closes the options. */ public void closeOptions() { _optionsDialog.setVisible(false); _optionsDialog.dispose(); }