📄 rootpanecontainer.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:38:07 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Interface RootPaneContainer</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RootPaneContainer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javax/swing/Renderer.html"><B>PREV CLASS</B></A> <A HREF="../../javax/swing/Scrollable.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="RootPaneContainer.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.swing</FONT><BR>Interface RootPaneContainer</H2><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../javax/swing/JApplet.html">JApplet</A>, <A HREF="../../javax/swing/JFrame.html">JFrame</A>, <A HREF="../../javax/swing/JInternalFrame.html">JInternalFrame</A>, <A HREF="../../javax/swing/JWindow.html">JWindow</A>, <A HREF="../../javax/swing/JDialog.html">JDialog</A></DD></DL><HR><DL><DT>public interface <B>RootPaneContainer</B></DL><P>This interface is implemented by components that have a single JRootPane child: JDialog, JFrame, JWindow, JApplet, JInternalFrame. The methods in this interface are just <i>covers</i> for the JRootPane properties, e.g. <code>getContentPane()</code> is generally implemented like this:<pre> public Container getContentPane() { return getRootPane().getContentPane(); } </pre> This interface serves as a <i>marker</i> for Swing GUI builders that need to treat components like JFrame, that contain a single JRootPane, specially. For example in a GUI builder, dropping a component on a RootPaneContainer would be interpreted as <code>frame.getContentPane().add(child)</code>.<P><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JRootPane.html"><CODE>JRootPane</CODE></A>, <A HREF="../../javax/swing/JFrame.html"><CODE>JFrame</CODE></A>, <A HREF="../../javax/swing/JDialog.html"><CODE>JDialog</CODE></A>, <A HREF="../../javax/swing/JWindow.html"><CODE>JWindow</CODE></A>, <A HREF="../../javax/swing/JApplet.html"><CODE>JApplet</CODE></A>, <A HREF="../../javax/swing/JInternalFrame.html"><CODE>JInternalFrame</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Container.html">Container</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/RootPaneContainer.html#getContentPane()">getContentPane</A></B>()</CODE><BR> Returns the contentPane.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/RootPaneContainer.html#getGlassPane()">getGlassPane</A></B>()</CODE><BR> Returns the glassPane.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/JLayeredPane.html">JLayeredPane</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/RootPaneContainer.html#getLayeredPane()">getLayeredPane</A></B>()</CODE><BR> Returns the layeredPane.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/JRootPane.html">JRootPane</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/RootPaneContainer.html#getRootPane()">getRootPane</A></B>()</CODE><BR> Return this component's single JRootPane child.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/RootPaneContainer.html#setContentPane(java.awt.Container)">setContentPane</A></B>(<A HREF="../../java/awt/Container.html">Container</A> contentPane)</CODE><BR> The "contentPane" is the primary container for application specific components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/RootPaneContainer.html#setGlassPane(java.awt.Component)">setGlassPane</A></B>(<A HREF="../../java/awt/Component.html">Component</A> glassPane)</CODE><BR> The glassPane is always the first child of the rootPane and the rootPanes layout manager ensures that it's always as big as the rootPane.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/RootPaneContainer.html#setLayeredPane(javax.swing.JLayeredPane)">setLayeredPane</A></B>(<A HREF="../../javax/swing/JLayeredPane.html">JLayeredPane</A> layeredPane)</CODE><BR> A Container that manages the contentPane and in some cases a menu bar.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -