Changeset 15492 in josm


Ignore:
Timestamp:
2019-11-01T23:59:01+01:00 (5 years ago)
Author:
Don-vip
Message:

see #18032, see #10435 - fix mappaint popup menu disappearance on macOS

macOS triggers a spurious sun.awt.UngrabEvent that is catched by BasicPopupMenuUI.MouseGrabber
and makes the popup menu disappear. Probably related to https://bugs.openjdk.java.net/browse/JDK-8225698

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
1 added
1 edited

Legend:

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

    r15293 r15492  
    3737import javax.swing.JMenu;
    3838import javax.swing.JPanel;
    39 import javax.swing.JPopupMenu;
    4039import javax.swing.JScrollPane;
    4140import javax.swing.JTabbedPane;
     
    7473import org.openstreetmap.josm.gui.util.FileFilterAllFiles;
    7574import org.openstreetmap.josm.gui.util.GuiHelper;
     75import org.openstreetmap.josm.gui.util.StayOpenPopupMenu;
    7676import org.openstreetmap.josm.gui.widgets.AbstractFileChooser;
    7777import org.openstreetmap.josm.gui.widgets.FileChooserManager;
     
    681681     * The popup menu displayed when right-clicking a map paint entry
    682682     */
    683     public class MapPaintPopup extends JPopupMenu {
     683    public class MapPaintPopup extends StayOpenPopupMenu {
    684684        /**
    685685         * Constructs a new {@code MapPaintPopup}.
Note: See TracChangeset for help on using the changeset viewer.