Ignore:
Timestamp:
23.08.2009 17:45:53 (3 years ago)
Author:
Gubaer
Message:

removed all occurences of setAlwaysOnTop(). See http://josm.openstreetmap.de/wiki/JosmWinMgtDemoApplication

File:
1 edited

Legend:

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

    r1954 r1987  
    11// License: GPL. For details, see LICENSE file. 
    22package org.openstreetmap.josm.gui; 
    3  
    4 import static org.openstreetmap.josm.tools.I18n.tr; 
    53 
    64import java.awt.Component; 
     
    2725 *  
    2826 */ 
     27@Deprecated 
    2928public class OptionPaneUtil { 
    3029 
     
    4140     */ 
    4241    static protected void prepareDialog(JDialog dialog) { 
    43  
    44         // always on top can be disabled in a configuration option. This is necessary 
    45         // for some WM on Linux, i.e. fluxbox. There, always-on-top propagates to the 
    46         // parent window, i.e. the JOSM window itself. 
    47         // 
    4842        // FIXME: this is a temporary solution. I'm still looking for an approach which 
    4943        // works across all OS and WMs. Can we get rid of "always-on-top" in JOSM 
    5044        // completely? 
    5145        // 
    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         } 
    5946        dialog.setModal(true); 
    60         dialog.toFront(); 
    6147        dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); 
    6248    } 
Note: See TracChangeset for help on using the changeset viewer.