equal
deleted
inserted
replaced
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. |