frame.html

来自「API資料大全」· HTML 代码 · 共 1,137 行 · 第 1/5 页

HTML
1,137
字号
NW_RESIZE_CURSOR</H3><PRE>public static final int <B>NW_RESIZE_CURSOR</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>replaced by <code>Cursor.NW_RESIZE_CURSOR</code>.</I><P></DL><HR><A NAME="NE_RESIZE_CURSOR"><!-- --></A><H3>NE_RESIZE_CURSOR</H3><PRE>public static final int <B>NE_RESIZE_CURSOR</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>replaced by <code>Cursor.NE_RESIZE_CURSOR</code>.</I><P></DL><HR><A NAME="N_RESIZE_CURSOR"><!-- --></A><H3>N_RESIZE_CURSOR</H3><PRE>public static final int <B>N_RESIZE_CURSOR</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>replaced by <code>Cursor.N_RESIZE_CURSOR</code>.</I><P></DL><HR><A NAME="S_RESIZE_CURSOR"><!-- --></A><H3>S_RESIZE_CURSOR</H3><PRE>public static final int <B>S_RESIZE_CURSOR</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>replaced by <code>Cursor.S_RESIZE_CURSOR</code>.</I><P></DL><HR><A NAME="W_RESIZE_CURSOR"><!-- --></A><H3>W_RESIZE_CURSOR</H3><PRE>public static final int <B>W_RESIZE_CURSOR</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>replaced by <code>Cursor.W_RESIZE_CURSOR</code>.</I><P></DL><HR><A NAME="E_RESIZE_CURSOR"><!-- --></A><H3>E_RESIZE_CURSOR</H3><PRE>public static final int <B>E_RESIZE_CURSOR</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>replaced by <code>Cursor.E_RESIZE_CURSOR</code>.</I><P></DL><HR><A NAME="HAND_CURSOR"><!-- --></A><H3>HAND_CURSOR</H3><PRE>public static final int <B>HAND_CURSOR</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>replaced by <code>Cursor.HAND_CURSOR</code>.</I><P></DL><HR><A NAME="MOVE_CURSOR"><!-- --></A><H3>MOVE_CURSOR</H3><PRE>public static final int <B>MOVE_CURSOR</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>replaced by <code>Cursor.MOVE_CURSOR</code>.</I><P></DL><HR><A NAME="NORMAL"><!-- --></A><H3>NORMAL</H3><PRE>public static final int <B>NORMAL</B></PRE><DL></DL><HR><A NAME="ICONIFIED"><!-- --></A><H3>ICONIFIED</H3><PRE>public static final int <B>ICONIFIED</B></PRE><DL></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="Frame()"><!-- --></A><H3>Frame</H3><PRE>public <B>Frame</B>()</PRE><DL><DD>Constructs a new instance of <code>Frame</code> that is  initially invisible.  The title of the <code>Frame</code> is empty.<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="Frame(java.awt.GraphicsConfiguration)"><!-- --></A><H3>Frame</H3><PRE>public <B>Frame</B>(<A HREF="../../java/awt/GraphicsConfiguration.html">GraphicsConfiguration</A>&nbsp;gc)</PRE><DL><DD>Create a <code>Frame</code> with the specified  <code>GraphicsConfiguration</code> of a screen device.<DD><DL><DT><B>Parameters:</B><DD><CODE>gc</CODE> - the <code>GraphicsConfiguration</code>  of the target screen device. 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="Frame(java.lang.String)"><!-- --></A><H3>Frame</H3><PRE>public <B>Frame</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;title)</PRE><DL><DD>Constructs a new, initially invisible <code>Frame</code> object  with the specified title.<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, "".<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if gc is not from a screen device.<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>, <A HREF="../../java/awt/GraphicsConfiguration.html#getBounds()"><CODE>GraphicsConfiguration.getBounds()</CODE></A></DL></DD></DL><HR><A NAME="Frame(java.lang.String, java.awt.GraphicsConfiguration)"><!-- --></A><H3>Frame</H3><PRE>public <B>Frame</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;title,             <A HREF="../../java/awt/GraphicsConfiguration.html">GraphicsConfiguration</A>&nbsp;gc)</PRE><DL><DD>Constructs a new, initially invisible <code>Frame</code> object  with the specified title and a  <code>GraphicsConfiguration</code>.<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>  of the target screen device.  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>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>, <A HREF="../../java/awt/GraphicsConfiguration.html#getBounds()"><CODE>GraphicsConfiguration.getBounds()</CODE></A></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="finalize()"><!-- --></A><H3>finalize</H3><PRE>protected void <B>finalize</B>()                 throws <A HREF="../../java/lang/Throwable.html">Throwable</A></PRE><DL><DD>We have to remove the (hard) reference to weakThis in the Vector, otherwise the WeakReference instance will never get garbage collected.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Window.html#finalize()">finalize</A></CODE> in class <CODE><A HREF="../../java/awt/Window.html">Window</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.lang.Object</CODE></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/Throwable.html">Throwable</A></CODE> - the <code>Exception</code> raised by this method</DL></DD></DL><HR><A NAME="addNotify()"><!-- --></A><H3>addNotify</H3><PRE>public void <B>addNotify</B>()</PRE><DL><DD>Makes this Frame displayable by connecting it to a native screen resource.  Making a frame displayable will cause any of its children to be made displayable. This method is called internally by the toolkit and should not be called directly by programs.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Window.html#addNotify()">addNotify</A></CODE> in class <CODE><A HREF="../../java/awt/Window.html">Window</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#isDisplayable()"><CODE>Component.isDisplayable()</CODE></A>, <A HREF="../../java/awt/Frame.html#removeNotify()"><CODE>removeNotify()</CODE></A></DL></DD></DL><HR><A NAME="getTitle()"><!-- --></A><H3>getTitle</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getTitle</B>()</PRE><DL><DD>Gets the title of the frame.  The title is displayed in the frame's border.<DD><DL>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?