frame.html

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

HTML
1,137
字号
</DL></DD><DD><DL><DT><B>Returns:</B><DD>the title of this frame, or an empty string ("")                if this frame doesn't have a title.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Frame.html#setTitle(java.lang.String)"><CODE>setTitle(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="setTitle(java.lang.String)"><!-- --></A><H3>setTitle</H3><PRE>public void <B>setTitle</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;title)</PRE><DL><DD>Sets the title for this frame to the specified string.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the title to be displayed in the frame's border<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>See Also: </B><DD><A HREF="../../java/awt/Frame.html#getTitle()"><CODE>getTitle()</CODE></A></DL></DD></DL><HR><A NAME="getIconImage()"><!-- --></A><H3>getIconImage</H3><PRE>public <A HREF="../../java/awt/Image.html">Image</A> <B>getIconImage</B>()</PRE><DL><DD>Gets the image to be displayed in the minimized icon for this frame.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the icon image for this frame, or <code>null</code>                     if this frame doesn't have an icon image.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Frame.html#setIconImage(java.awt.Image)"><CODE>setIconImage(java.awt.Image)</CODE></A></DL></DD></DL><HR><A NAME="setIconImage(java.awt.Image)"><!-- --></A><H3>setIconImage</H3><PRE>public void <B>setIconImage</B>(<A HREF="../../java/awt/Image.html">Image</A>&nbsp;image)</PRE><DL><DD>Sets the image to displayed in the minimized icon for this frame.  Not all platforms support the concept of minimizing a window.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the icon image to be displayed.            If this parameter is <code>null</code> then the            icon image is set to the default image, which may vary            with platform.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Frame.html#getIconImage()"><CODE>getIconImage()</CODE></A></DL></DD></DL><HR><A NAME="getMenuBar()"><!-- --></A><H3>getMenuBar</H3><PRE>public <A HREF="../../java/awt/MenuBar.html">MenuBar</A> <B>getMenuBar</B>()</PRE><DL><DD>Gets the menu bar for this frame.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the menu bar for this frame, or <code>null</code>                    if this frame doesn't have a menu bar.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Frame.html#setMenuBar(java.awt.MenuBar)"><CODE>setMenuBar(java.awt.MenuBar)</CODE></A></DL></DD></DL><HR><A NAME="setMenuBar(java.awt.MenuBar)"><!-- --></A><H3>setMenuBar</H3><PRE>public void <B>setMenuBar</B>(<A HREF="../../java/awt/MenuBar.html">MenuBar</A>&nbsp;mb)</PRE><DL><DD>Sets the menu bar for this frame to the specified menu bar.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mb</CODE> - the menu bar being set.            If this parameter is <code>null</code> then any            existing menu bar on this frame is removed.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Frame.html#getMenuBar()"><CODE>getMenuBar()</CODE></A></DL></DD></DL><HR><A NAME="isResizable()"><!-- --></A><H3>isResizable</H3><PRE>public boolean <B>isResizable</B>()</PRE><DL><DD>Indicates whether this frame is resizable by the user.   By default, all frames are initially resizable.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the user can resize this frame;                         <code>false</code> otherwise.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Frame.html#setResizable(boolean)"><CODE>setResizable(boolean)</CODE></A></DL></DD></DL><HR><A NAME="setResizable(boolean)"><!-- --></A><H3>setResizable</H3><PRE>public void <B>setResizable</B>(boolean&nbsp;resizable)</PRE><DL><DD>Sets whether this frame is resizable by the user.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>resizable</CODE> - <code>true</code> if this frame is resizable;                        <code>false</code> otherwise.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Frame.html#isResizable()"><CODE>isResizable()</CODE></A></DL></DD></DL><HR><A NAME="setState(int)"><!-- --></A><H3>setState</H3><PRE>public void <B>setState</B>(int&nbsp;state)</PRE><DL><DD>Sets the state of this frame.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>state</CODE> - <code>Frame.ICONIFIED</code> if this frame is in            iconic state; <code>Frame.NORMAL</code> if this frame is            in normal state.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Frame.html#getState()"><CODE>getState()</CODE></A></DL></DD></DL><HR><A NAME="getState()"><!-- --></A><H3>getState</H3><PRE>public int <B>getState</B>()</PRE><DL><DD>Gets the state of this frame.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>Frame.ICONIFIED</code> if frame in iconic state;           <code>Frame.NORMAL</code> if frame is in normal state.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Frame.html#setState(int)"><CODE>setState(int)</CODE></A></DL></DD></DL><HR><A NAME="remove(java.awt.MenuComponent)"><!-- --></A><H3>remove</H3><PRE>public void <B>remove</B>(<A HREF="../../java/awt/MenuComponent.html">MenuComponent</A>&nbsp;m)</PRE><DL><DD>Removes the specified menu bar from this frame.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/awt/MenuContainer.html#remove(java.awt.MenuComponent)">remove</A></CODE> in interface <CODE><A HREF="../../java/awt/MenuContainer.html">MenuContainer</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#remove(java.awt.MenuComponent)">remove</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - the menu component to remove.           If this parameter is <code>null</code> then a           NullPointerException is thrown and no action           is taken.</DL></DD></DL><HR><A NAME="removeNotify()"><!-- --></A><H3>removeNotify</H3><PRE>public void <B>removeNotify</B>()</PRE><DL><DD>Makes this Frame undisplayable by removing its connection to its native screen resource. Making a Frame undisplayable will cause any of its children to be made undisplayable.  This method is called by the toolkit internally and should not be called directly by programs.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#removeNotify()">removeNotify</A></CODE> in class <CODE><A HREF="../../java/awt/Container.html">Container</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#addNotify()"><CODE>addNotify()</CODE></A></DL></DD></DL><HR><A NAME="paramString()"><!-- --></A><H3>paramString</H3><PRE>protected <A HREF="../../java/lang/String.html">String</A> <B>paramString</B>()</PRE><DL><DD>Returns the parameter String of this Frame.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#paramString()">paramString</A></CODE> in class <CODE><A HREF="../../java/awt/Container.html">Container</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.awt.Container</CODE></DD><DD><DL><DT><B>Returns:</B><DD>the parameter string of this container.</DL></DD></DL><HR><A NAME="setCursor(int)"><!-- --></A><H3>setCursor</H3><PRE>public void <B>setCursor</B>(int&nbsp;cursorType)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of JDK version 1.1, replaced by <code>Component.setCursor(Cursor)</code>.</I><P><DD><DL></DL></DD></DL><HR><A NAME="getCursorType()"><!-- --></A><H3>getCursorType</H3><PRE>public int <B>getCursorType</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of JDK version 1.1, replaced by <code>Component.getCursor()</code>.</I><P>

⌨️ 快捷键说明

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