curButton.setActionCommand("camo"); //$NON-NLS-1$
// When a camo button is pressed, remove any previous
// listener from the dialog, update the dialog for the
// button's player, and add a new listener.
curButton.addActionListener(new ActionListener() {
private final CamoChoiceDialog dialog = camoDialog;
private final ImageButton button = curButton;
private final Color background = defaultBackground;
private final Player player = curPlayer;