Changeset 7401 in josm for trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
- Timestamp:
- 2014-08-15T17:45:34+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r7005 r7401 28 28 import javax.swing.JScrollPane; 29 29 import javax.swing.KeyStroke; 30 import javax.swing.SwingUtilities;31 30 import javax.swing.UIManager; 32 31 33 32 import org.openstreetmap.josm.gui.help.HelpBrowser; 34 33 import org.openstreetmap.josm.gui.help.HelpUtil; 34 import org.openstreetmap.josm.gui.util.GuiHelper; 35 35 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; 36 36 import org.openstreetmap.josm.tools.GBC; … … 538 538 /** 539 539 * Sets the button that will react to ENTER. 540 * @param defaultButtonIdx The button index (starts to )540 * @param defaultButtonIdx The button index (starts to 1) 541 541 * @return {@code this} 542 542 */ … … 558 558 559 559 /** 560 * Don't focus the "do not show this again" check box, but the default button.560 * Always makes sure the default button has initial focus. 561 561 */ 562 562 protected void fixFocus() { 563 if (toggleable && defaultButton != null) { 564 SwingUtilities.invokeLater(new Runnable() { 565 @Override public void run() { 563 if (defaultButton != null) { 564 GuiHelper.runInEDT(new Runnable() { 565 @Override 566 public void run() { 566 567 defaultButton.requestFocusInWindow(); 567 568 }
Note:
See TracChangeset
for help on using the changeset viewer.