📄 jframe.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.awt.MenuContainer"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.awt.<A HREF="../../java/awt/MenuContainer.html">MenuContainer</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/awt/MenuContainer.html#getFont()">getFont</A>, <A HREF="../../java/awt/MenuContainer.html#postEvent(java.awt.Event)">postEvent</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="EXIT_ON_CLOSE"><!-- --></A><H3>EXIT_ON_CLOSE</H3><PRE>public static final int <B>EXIT_ON_CLOSE</B></PRE><DL><DD>The exit application default window close operation. If a window has this set as the close operation and is closed in an applet, a <code>SecurityException</code> may be thrown. It is recommended you only use this in an application. <p><DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="rootPane"><!-- --></A><H3>rootPane</H3><PRE>protected <A HREF="../../javax/swing/JRootPane.html">JRootPane</A> <B>rootPane</B></PRE><DL><DD>The <code>JRootPane</code> instance that manages the <code>contentPane</code> and optional <code>menuBar</code> for this frame, as well as the <code>glassPane</code>.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JRootPane.html"><CODE>JRootPane</CODE></A>, <A HREF="../../javax/swing/RootPaneContainer.html"><CODE>RootPaneContainer</CODE></A></DL></DD></DL><HR><A NAME="rootPaneCheckingEnabled"><!-- --></A><H3>rootPaneCheckingEnabled</H3><PRE>protected boolean <B>rootPaneCheckingEnabled</B></PRE><DL><DD>If true then calls to <code>add</code> and <code>setLayout</code> will cause an exception to be thrown. The default is false.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JFrame.html#isRootPaneCheckingEnabled()"><CODE>isRootPaneCheckingEnabled()</CODE></A>, <A HREF="../../javax/swing/JFrame.html#setRootPaneCheckingEnabled(boolean)"><CODE>setRootPaneCheckingEnabled(boolean)</CODE></A></DL></DD></DL><HR><A NAME="accessibleContext"><!-- --></A><H3>accessibleContext</H3><PRE>protected <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A> <B>accessibleContext</B></PRE><DL><DD>The accessible context property.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="JFrame()"><!-- --></A><H3>JFrame</H3><PRE>public <B>JFrame</B>()</PRE><DL><DD>Constructs a new frame that is initially invisible.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#setSize(int, int)"><CODE>Component.setSize(int, int)</CODE></A>, <A HREF="../../java/awt/Component.html#setVisible(boolean)"><CODE>Component.setVisible(boolean)</CODE></A></DL></DD></DL><HR><A NAME="JFrame(java.awt.GraphicsConfiguration)"><!-- --></A><H3>JFrame</H3><PRE>public <B>JFrame</B>(<A HREF="../../java/awt/GraphicsConfiguration.html">GraphicsConfiguration</A> gc)</PRE><DL><DD>Creates a <code>Frame</code> in the specified <code>GraphicsConfiguration</code> of a screen device and a blank title.<DD><DL><DT><B>Parameters:</B><DD><CODE>gc</CODE> - the <code>GraphicsConfiguration</code> that is used to construct the new <code>Frame</code>; if <code>gc</code> is <code>null</code>, the system default <code>GraphicsConfiguration</code> is assumed<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>gc</code> is not from a screen device<DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="JFrame(java.lang.String)"><!-- --></A><H3>JFrame</H3><PRE>public <B>JFrame</B>(<A HREF="../../java/lang/String.html">String</A> title)</PRE><DL><DD>Creates a new, initially invisible <code>Frame</code> with the specified title.<DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the title for the frame<DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#setSize(int, int)"><CODE>Component.setSize(int, int)</CODE></A>, <A HREF="../../java/awt/Component.html#setVisible(boolean)"><CODE>Component.setVisible(boolean)</CODE></A></DL></DD></DL><HR><A NAME="JFrame(java.lang.String, java.awt.GraphicsConfiguration)"><!-- --></A><H3>JFrame</H3><PRE>public <B>JFrame</B>(<A HREF="../../java/lang/String.html">String</A> title, <A HREF="../../java/awt/GraphicsConfiguration.html">GraphicsConfiguration</A> gc)</PRE><DL><DD>Creates a <code>JFrame</code> with the specified title and the specified <code>GraphicsConfiguration</code> of a screen device.<DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the title to be displayed in the frame's border. A <code>null</code> value is treated as an empty string, "".<DD><CODE>gc</CODE> - the <code>GraphicsConfiguration</code> that is used to construct the new <code>JFrame</code> with; if <code>gc</code> is <code>null</code>, the system default <code>GraphicsConfiguration</code> is assumed<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>gc</code> is not from a screen device<DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="frameInit()"><!-- --></A><H3>frameInit</H3><PRE>protected void <B>frameInit</B>()</PRE><DL><DD>Called by the constructors to init the <code>JFrame</code> properly.<DD><DL></DL></DD></DL><HR><A NAME="createRootPane()"><!-- --></A><H3>createRootPane</H3><PRE>protected <A HREF="../../javax/swing/JRootPane.html">JRootPane</A> <B>createRootPane</B>()</PRE><DL><DD>Called by the constructor methods to create the default <code>rootPane</code>.<DD><DL></DL></DD></DL><HR><A NAME="processKeyEvent(java.awt.event.KeyEvent)"><!-- --></A><H3>processKeyEvent</H3><PRE>protected void <B>processKeyEvent</B>(<A HREF="../../java/awt/event/KeyEvent.html">KeyEvent</A> e)</PRE><DL><DD>Processes key events occurring on this component and, if appropriate, passes them on to components in the frame which have registered interest in them.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#processKeyEvent(java.awt.event.KeyEvent)">processKeyEvent</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -