jdk/src/share/classes/javax/swing/DefaultDesktopManager.java
changeset 22567 5816a47fa4dd
parent 9035 1255eb81cc2f
child 23280 df31f522531f
equal deleted inserted replaced
22566:4ebe53dd7814 22567:5816a47fa4dd
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   183             return;
   183             return;
   184         }
   184         }
   185 
   185 
   186         if (c instanceof JLayeredPane) {
   186         if (c instanceof JLayeredPane) {
   187             JLayeredPane lp = (JLayeredPane)c;
   187             JLayeredPane lp = (JLayeredPane)c;
   188             int layer = lp.getLayer(f);
   188             int layer = JLayeredPane.getLayer(f);
   189             lp.putLayer(desktopIcon, layer);
   189             JLayeredPane.putLayer(desktopIcon, layer);
   190         }
   190         }
   191 
   191 
   192         // If we are maximized we already have the normal bounds recorded
   192         // If we are maximized we already have the normal bounds recorded
   193         // don't try to re-record them, otherwise we incorrectly set the
   193         // don't try to re-record them, otherwise we incorrectly set the
   194         // normal bounds to maximized state.
   194         // normal bounds to maximized state.