Ignore:
Timestamp:
2014-08-15T17:45:34+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10175 - ask for JOSM update in case of crash with old version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java

    r7005 r7401  
    2828import javax.swing.JScrollPane;
    2929import javax.swing.KeyStroke;
    30 import javax.swing.SwingUtilities;
    3130import javax.swing.UIManager;
    3231
    3332import org.openstreetmap.josm.gui.help.HelpBrowser;
    3433import org.openstreetmap.josm.gui.help.HelpUtil;
     34import org.openstreetmap.josm.gui.util.GuiHelper;
    3535import org.openstreetmap.josm.gui.widgets.JMultilineLabel;
    3636import org.openstreetmap.josm.tools.GBC;
     
    538538    /**
    539539     * 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)
    541541     * @return {@code this}
    542542     */
     
    558558
    559559    /**
    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.
    561561     */
    562562    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() {
    566567                    defaultButton.requestFocusInWindow();
    567568                }
Note: See TracChangeset for help on using the changeset viewer.