src/java.desktop/share/classes/javax/swing/JRootPane.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
    69  * <b>Note:</b> The <code>JComponent</code> method <code>getRootPane</code>
    69  * <b>Note:</b> The <code>JComponent</code> method <code>getRootPane</code>
    70  * can be used to obtain the <code>JRootPane</code> that contains
    70  * can be used to obtain the <code>JRootPane</code> that contains
    71  * a given component.
    71  * a given component.
    72  * </blockquote>
    72  * </blockquote>
    73  *
    73  *
    74  * <table class="borderless" style="float:right">
    74  * <div style="float:right;text-align:center;font-weight:bold">
    75  * <caption>Example</caption>
    75  *   <p>Example:
    76  * <tr>
    76  *   <p><img src="doc-files/JRootPane-2.gif"
    77  * <td style="text-align:center">
    77  *      alt="the following text describes this graphic." height=386 width=349>
    78  * <img src="doc-files/JRootPane-2.gif"
    78  * </div>
    79  * alt="The following text describes this graphic." HEIGHT=386 WIDTH=349>
       
    80  * </td>
       
    81  * </tr>
       
    82  * </table>
       
    83  * The diagram at right shows the structure of a <code>JRootPane</code>.
    79  * The diagram at right shows the structure of a <code>JRootPane</code>.
    84  * A <code>JRootpane</code> is made up of a <code>glassPane</code>,
    80  * A <code>JRootpane</code> is made up of a <code>glassPane</code>,
    85  * an optional <code>menuBar</code>, and a <code>contentPane</code>.
    81  * an optional <code>menuBar</code>, and a <code>contentPane</code>.
    86  * (The <code>JLayeredPane</code> manages the <code>menuBar</code>
    82  * (The <code>JLayeredPane</code> manages the <code>menuBar</code>
    87  * and the <code>contentPane</code>.)
    83  * and the <code>contentPane</code>.)