Skip to content

Commit

Permalink
Fixes the ok button focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
stiangre committed Jul 16, 2024
1 parent 3f53f28 commit 432dc08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/net/sf/freecol/client/gui/dialog/EndTurnDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void valueChanged(ListSelectionEvent e) {
add(text, "newline 20, growx, shrinkx, wmin 100");
add(listScroller, "newline 10, grow, shrink");

final JButton okButton = Utility.localizedButton("ok").withButtonStyle(ButtonStyle.IMPORTANT);
okButton = Utility.localizedButton("ok").withButtonStyle(ButtonStyle.IMPORTANT);
okButton.addActionListener(ae -> {
getGUI().removeComponent(this);
getFreeColClient().getInGameController().endTurn(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public FirstContactDialog(FreeColClient freeColClient, Player player, Player oth
add(image);
add(text, "grow, wmin 100");

final JButton okButton = Utility.localizedButton("yes").withButtonStyle(ButtonStyle.IMPORTANT);
okButton = Utility.localizedButton("yes").withButtonStyle(ButtonStyle.IMPORTANT);
okButton.addActionListener(ae -> {
getGUI().removeComponent(this);
handler.handle(Boolean.TRUE);
Expand Down

0 comments on commit 432dc08

Please sign in to comment.