Changeset 1987 in josm for trunk/src/org/openstreetmap/josm/gui/OptionPaneUtil.java
- Timestamp:
- 23.08.2009 17:45:53 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/OptionPaneUtil.java
r1954 r1987 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.awt.Component; … … 27 25 * 28 26 */ 27 @Deprecated 29 28 public class OptionPaneUtil { 30 29 … … 41 40 */ 42 41 static protected void prepareDialog(JDialog dialog) { 43 44 // always on top can be disabled in a configuration option. This is necessary45 // for some WM on Linux, i.e. fluxbox. There, always-on-top propagates to the46 // parent window, i.e. the JOSM window itself.47 //48 42 // FIXME: this is a temporary solution. I'm still looking for an approach which 49 43 // works across all OS and WMs. Can we get rid of "always-on-top" in JOSM 50 44 // completely? 51 45 // 52 if (Main.pref.getBoolean("window-handling.option-pane-always-on-top", true)) {53 try {54 dialog.setAlwaysOnTop(true);55 } catch(SecurityException e) {56 System.out.println(tr("Warning: failed to put option pane dialog always on top. Exception was: {0}", e.toString()));57 }58 }59 46 dialog.setModal(true); 60 dialog.toFront();61 47 dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); 62 48 }
Note: See TracChangeset
for help on using the changeset viewer.
