jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameDockIconUI.java
changeset 32481 6f01579f7118
parent 28235 0dfebfcb9f8a
child 32865 f9cb6e427f9e
equal deleted inserted replaced
32480:6d72f6be8202 32481:6f01579f7118
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2015, 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
   301             if (parent instanceof JLayeredPane) {
   301             if (parent instanceof JLayeredPane) {
   302                 ((JLayeredPane)parent).add(this, JLayeredPane.POPUP_LAYER, 0);
   302                 ((JLayeredPane)parent).add(this, JLayeredPane.POPUP_LAYER, 0);
   303             }
   303             }
   304         }
   304         }
   305 
   305 
   306         @SuppressWarnings("deprecation")
   306         @Deprecated
   307         public void hide() {
   307         public void hide() {
   308             final Container parent = getParent();
   308             final Container parent = getParent();
   309             final Rectangle r = this.getBounds();
   309             final Rectangle r = this.getBounds();
   310             if (parent == null) return;
   310             if (parent == null) return;
   311             parent.remove(this);
   311             parent.remove(this);