src/share/classes/javax/swing/JRootPane.java

Print this page




  26 
  27 import java.applet.Applet;
  28 import java.awt.*;
  29 import java.awt.event.*;
  30 import java.beans.*;
  31 import java.security.AccessController;
  32 import javax.accessibility.*;
  33 import javax.swing.plaf.RootPaneUI;
  34 import java.util.Vector;
  35 import java.io.Serializable;
  36 import javax.swing.border.*;
  37 import sun.awt.AWTAccessor;
  38 import sun.security.action.GetBooleanAction;
  39 
  40 
  41 /**
  42  * A lightweight container used behind the scenes by
  43  * <code>JFrame</code>, <code>JDialog</code>, <code>JWindow</code>,
  44  * <code>JApplet</code>, and <code>JInternalFrame</code>.
  45  * For task-oriented information on functionality provided by root panes
  46  * see <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html">How to Use Root Panes</a>,
  47  * a section in <em>The Java Tutorial</em>.
  48  *
  49  * <p>
  50  * The following image shows the relationships between
  51  * the classes that use root panes.
  52  * <p align=center><img src="doc-files/JRootPane-1.gif"
  53  * alt="The following text describes this graphic."
  54  * HEIGHT=484 WIDTH=629></p>
  55  * The &quot;heavyweight&quot; components (those that delegate to a peer, or native
  56  * component on the host system) are shown with a darker, heavier box. The four
  57  * heavyweight JFC/Swing containers (<code>JFrame</code>, <code>JDialog</code>,
  58  * <code>JWindow</code>, and <code>JApplet</code>) are
  59  * shown in relation to the AWT classes they extend.
  60  * These four components are the
  61  * only heavyweight containers in the Swing library. The lightweight container
  62  * <code>JInternalFrame</code> is also shown.
  63  * All five of these JFC/Swing containers implement the
  64  * <code>RootPaneContainer</code> interface,
  65  * and they all delegate their operations to a
  66  * <code>JRootPane</code> (shown with a little "handle" on top).




  26 
  27 import java.applet.Applet;
  28 import java.awt.*;
  29 import java.awt.event.*;
  30 import java.beans.*;
  31 import java.security.AccessController;
  32 import javax.accessibility.*;
  33 import javax.swing.plaf.RootPaneUI;
  34 import java.util.Vector;
  35 import java.io.Serializable;
  36 import javax.swing.border.*;
  37 import sun.awt.AWTAccessor;
  38 import sun.security.action.GetBooleanAction;
  39 
  40 
  41 /**
  42  * A lightweight container used behind the scenes by
  43  * <code>JFrame</code>, <code>JDialog</code>, <code>JWindow</code>,
  44  * <code>JApplet</code>, and <code>JInternalFrame</code>.
  45  * For task-oriented information on functionality provided by root panes
  46  * see <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/rootpane.html">How to Use Root Panes</a>,
  47  * a section in <em>The Java Tutorial</em>.
  48  *
  49  * <p>
  50  * The following image shows the relationships between
  51  * the classes that use root panes.
  52  * <p align=center><img src="doc-files/JRootPane-1.gif"
  53  * alt="The following text describes this graphic."
  54  * HEIGHT=484 WIDTH=629></p>
  55  * The &quot;heavyweight&quot; components (those that delegate to a peer, or native
  56  * component on the host system) are shown with a darker, heavier box. The four
  57  * heavyweight JFC/Swing containers (<code>JFrame</code>, <code>JDialog</code>,
  58  * <code>JWindow</code>, and <code>JApplet</code>) are
  59  * shown in relation to the AWT classes they extend.
  60  * These four components are the
  61  * only heavyweight containers in the Swing library. The lightweight container
  62  * <code>JInternalFrame</code> is also shown.
  63  * All five of these JFC/Swing containers implement the
  64  * <code>RootPaneContainer</code> interface,
  65  * and they all delegate their operations to a
  66  * <code>JRootPane</code> (shown with a little "handle" on top).