src/java.desktop/share/classes/javax/swing/JLayeredPane.java
changeset 58325 d32a3b1ca84a
parent 52752 5e7dba63836d
equal deleted inserted replaced
58324:0aba35254e00 58325:d32a3b1ca84a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2019, 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
    45  * components.
    45  * components.
    46  * For task-oriented documentation and examples of using layered panes see
    46  * For task-oriented documentation and examples of using layered panes see
    47  * <a href="https://docs.oracle.com/javase/tutorial/uiswing/components/layeredpane.html">How to Use a Layered Pane</a>,
    47  * <a href="https://docs.oracle.com/javase/tutorial/uiswing/components/layeredpane.html">How to Use a Layered Pane</a>,
    48  * a section in <em>The Java Tutorial</em>.
    48  * a section in <em>The Java Tutorial</em>.
    49  *
    49  *
    50  * <table class="borderless" style="float:right">
    50  * <div style="float:right;text-align:center">
    51  * <caption>Example</caption>
    51  *   <p><b>Example:</b>
    52  * <TR>
    52  *   <p><img src="doc-files/JLayeredPane-1.gif"
    53  *   <TD style="text-align:center">
    53  *       alt="The following text describes this image."
    54  *     <P STYLE="TEXT-ALIGN:CENTER"><IMG SRC="doc-files/JLayeredPane-1.gif"
    54  *       width="269" height="264">
    55  *     alt="The following text describes this image."
    55  * </div>
    56  *     WIDTH="269" HEIGHT="264" STYLE="FLOAT:BOTTOM; BORDER=0">
       
    57  *   </TD>
       
    58  * </TR>
       
    59  * </TABLE>
       
    60  * For convenience, <code>JLayeredPane</code> divides the depth-range
    56  * For convenience, <code>JLayeredPane</code> divides the depth-range
    61  * into several different layers. Putting a component into one of those
    57  * into several different layers. Putting a component into one of those
    62  * layers makes it easy to ensure that components overlap properly,
    58  * layers makes it easy to ensure that components overlap properly,
    63  * without having to worry about specifying numbers for specific depths:
    59  * without having to worry about specifying numbers for specific depths:
    64  * <DL>
    60  * <DL>