window.html

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

HTML
1,082
字号
 If the Window is already visible, this will bring the Window  to the front.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#show()">show</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</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/Window.html#toFront()"><CODE>toFront()</CODE></A>, <A HREF="../../java/awt/Component.html#setVisible(boolean)"><CODE>Component.setVisible(boolean)</CODE></A></DL></DD></DL><HR><A NAME="hide()"><!-- --></A><H3>hide</H3><PRE>public void <B>hide</B>()</PRE><DL><DD>Hide this Window, its subcomponents, and all of its owned children.  The Window and its subcomponents can be made visible again with a call to <code>show</code>.  </p><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#hide()">hide</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Window.html#show()"><CODE>show()</CODE></A>, <A HREF="../../java/awt/Window.html#dispose()"><CODE>dispose()</CODE></A></DL></DD></DL><HR><A NAME="dispose()"><!-- --></A><H3>dispose</H3><PRE>public void <B>dispose</B>()</PRE><DL><DD>Releases all of the native screen resources used by this Window,  its subcomponents, and all of its owned children. That is, the  resources for these Components will be destroyed, any memory  they consume will be returned to the OS, and they will be marked  as undisplayable. <p> The Window and its subcomponents can be made displayable again by rebuilding the native resources with a subsequent call to <code>pack</code> or <code>show</code>. The states of the recreated Window and its subcomponents will be identical to the states of these objects at the point where the Window was disposed (not accounting for additional modifcations between those actions). </p><DD><DL></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/Window.html#pack()"><CODE>pack()</CODE></A>, <A HREF="../../java/awt/Window.html#show()"><CODE>show()</CODE></A></DL></DD></DL><HR><A NAME="toFront()"><!-- --></A><H3>toFront</H3><PRE>public void <B>toFront</B>()</PRE><DL><DD>Brings this window to the front. Places this window at the top of the stacking order and shows it in front of any other windows.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Window.html#toBack()"><CODE>toBack()</CODE></A></DL></DD></DL><HR><A NAME="toBack()"><!-- --></A><H3>toBack</H3><PRE>public void <B>toBack</B>()</PRE><DL><DD>Sends this window to the back. Places this window at the bottom of the stacking order and makes the corresponding adjustment to other visible windows.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Window.html#toFront()"><CODE>toFront()</CODE></A></DL></DD></DL><HR><A NAME="getToolkit()"><!-- --></A><H3>getToolkit</H3><PRE>public <A HREF="../../java/awt/Toolkit.html">Toolkit</A> <B>getToolkit</B>()</PRE><DL><DD>Returns the toolkit of this frame.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#getToolkit()">getToolkit</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the toolkit of this window.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Toolkit.html"><CODE>Toolkit</CODE></A>, <A HREF="../../java/awt/Toolkit.html#getDefaultToolkit()"><CODE>Toolkit.getDefaultToolkit()</CODE></A>, <A HREF="../../java/awt/Component.html#getToolkit()"><CODE>Component.getToolkit()</CODE></A></DL></DD></DL><HR><A NAME="getWarningString()"><!-- --></A><H3>getWarningString</H3><PRE>public final <A HREF="../../java/lang/String.html">String</A> <B>getWarningString</B>()</PRE><DL><DD>Gets the warning string that is displayed with this window.  If this window is insecure, the warning string is displayed  somewhere in the visible area of the window. A window is  insecure if there is a security manager, and the security  manager's <code>checkTopLevelWindow</code> method returns  <code>false</code> when this window is passed to it as an argument. <p> If the window is secure, then <code>getWarningString</code> returns <code>null</code>. If the window is insecure, this method checks for the system property  <code>awt.appletWarning</code>  and returns the string value of that property.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the warning string for this window.<DT><B>See Also: </B><DD><A HREF="../../java/lang/SecurityManager.html#checkTopLevelWindow(java.lang.Object)"><CODE>SecurityManager.checkTopLevelWindow(java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public <A HREF="../../java/util/Locale.html">Locale</A> <B>getLocale</B>()</PRE><DL><DD>Gets the <code>Locale</code> object that is associated  with this window, if the locale has been set. If no locale has been set, then the default locale  is returned.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#getLocale()">getLocale</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the locale that is set for this window.<DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../java/util/Locale.html"><CODE>Locale</CODE></A></DL></DD></DL><HR><A NAME="getInputContext()"><!-- --></A><H3>getInputContext</H3><PRE>public <A HREF="../../java/awt/im/InputContext.html">InputContext</A> <B>getInputContext</B>()</PRE><DL><DD>Gets the input context for this window. A window always has an input context, which is shared by subcomponents unless they create and set their own.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#getInputContext()">getInputContext</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getInputContext()"><CODE>Component.getInputContext()</CODE></A></DL></DD></DL><HR><A NAME="setCursor(java.awt.Cursor)"><!-- --></A><H3>setCursor</H3><PRE>public void <B>setCursor</B>(<A HREF="../../java/awt/Cursor.html">Cursor</A>&nbsp;cursor)</PRE><DL><DD>Set the cursor image to a specified cursor.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#setCursor(java.awt.Cursor)">setCursor</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE><code>cursor</code></CODE> - One of the constants defined            by the <code>Cursor</code> class. If this parameter is null            then the cursor for this window will be set to the type            Cursor.DEFAULT_CURSOR.<DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getCursor()"><CODE>Component.getCursor()</CODE></A>, <A HREF="../../java/awt/Cursor.html"><CODE>Cursor</CODE></A></DL></DD></DL><HR><A NAME="getOwner()"><!-- --></A><H3>getOwner</H3><PRE>public <A HREF="../../java/awt/Window.html">Window</A> <B>getOwner</B>()</PRE><DL><DD>Returns the owner of this window.<DD><DL></DL></DD></DL><HR><A NAME="getOwnedWindows()"><!-- --></A><H3>getOwnedWindows</H3><PRE>public <A HREF="../../java/awt/Window.html">Window</A>[] <B>getOwnedWindows</B>()</PRE><DL><DD>Return an array containing all the windows this window currently owns.<DD><DL></DL></DD><DD><DL><DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="addWindowListener(java.awt.event.WindowListener)"><!-- --></A><H3>addWindowListener</H3><PRE>public void <B>addWindowListener</B>(<A HREF="../../java/awt/event/WindowListener.html">WindowListener</A>&nbsp;l)</PRE><DL>

⌨️ 快捷键说明

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