/** {@inheritDoc} */ @Override public final void showMessage() { showMessage(getTurnPhasePriorityMessage(player.getGame())); chosenSa = null; if (getController() .canUndoLastAction()) { // allow undoing with cancel button if can undo last action ButtonUtil.update(getOwner(), "OK", "Undo", true, true, true); } else { // otherwise allow ending turn with cancel button ButtonUtil.update(getOwner(), "OK", "End Turn", true, true, true); } }
public PanSettings() { initComponents(); JComponent btnSave = ButtonUtil.addImageBackgroundButton( panContainer_btnSave, new DefaultButtonBuilder("default_150x50", "Save")); btnSave.addMouseListener( new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { super.mouseClicked(evt); saveSettings(); } }); loadSystemInformation(); loadSettings(); }