@Override public void actionPerformed(ActionEvent e) { parent.newGame( (int) numAI.getValue(), AIPlayer.Difficulty.valueOf(chooseDifficulty.getSelection().getActionCommand())); this.dispose(); }