window.html
来自「API資料大全」· HTML 代码 · 共 1,082 行 · 第 1/5 页
HTML
1,082 行
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/awt/Window.html#Window(java.awt.Window, java.awt.GraphicsConfiguration)">Window</A></B>(<A HREF="../../java/awt/Window.html">Window</A> owner, <A HREF="../../java/awt/GraphicsConfiguration.html">GraphicsConfiguration</A> gc)</CODE><BR> Constructs a new invisible window with the specified window as its owner and a <code>GraphicsConfiguration</code> of a screen device.</TD></TR></TABLE> <!-- ========== 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#addNotify()">addNotify</A></B>()</CODE><BR> Makes this Window displayable by creating the connection to its native screen resource.</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="../../java/awt/Window.html#addWindowListener(java.awt.event.WindowListener)">addWindowListener</A></B>(<A HREF="../../java/awt/event/WindowListener.html">WindowListener</A> l)</CODE><BR> Adds the specified window listener to receive window events from this window.</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="../../java/awt/Window.html#applyResourceBundle(java.util.ResourceBundle)">applyResourceBundle</A></B>(<A HREF="../../java/util/ResourceBundle.html">ResourceBundle</A> rb)</CODE><BR> Apply the settings in the given ResourceBundle to this Window.</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="../../java/awt/Window.html#applyResourceBundle(java.lang.String)">applyResourceBundle</A></B>(<A HREF="../../java/lang/String.html">String</A> rbName)</CODE><BR> Load the ResourceBundle with the given name using the default locale and apply its settings to this window.</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="../../java/awt/Window.html#dispose()">dispose</A></B>()</CODE><BR> Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#finalize()">finalize</A></B>()</CODE><BR> Disposes of the input methods and context, and removes the WeakReference which formerly pointed to this Window from the parent's owned Window list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE><BR> Gets the AccessibleContext associated with this Window.</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="../../java/awt/Window.html#getFocusOwner()">getFocusOwner</A></B>()</CODE><BR> Returns the child component of this Window which has focus if and only if this Window is active.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/GraphicsConfiguration.html">GraphicsConfiguration</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#getGraphicsConfiguration()">getGraphicsConfiguration</A></B>()</CODE><BR> This method returns the GraphicsConfiguration used by this Window.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/im/InputContext.html">InputContext</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#getInputContext()">getInputContext</A></B>()</CODE><BR> Gets the input context for this window.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/util/EventListener.html">EventListener</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#getListeners(java.lang.Class)">getListeners</A></B>(<A HREF="../../java/lang/Class.html">Class</A> listenerType)</CODE><BR> Return an array of all the listeners that were added to the Window with addXXXListener(), where XXX is the name of the <code>listenerType</code> argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/util/Locale.html">Locale</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#getLocale()">getLocale</A></B>()</CODE><BR> Gets the <code>Locale</code> object that is associated with this window, if the locale has been set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Window.html">Window</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#getOwnedWindows()">getOwnedWindows</A></B>()</CODE><BR> Return an array containing all the windows this window currently owns.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Window.html">Window</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#getOwner()">getOwner</A></B>()</CODE><BR> Returns the owner of this window.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Toolkit.html">Toolkit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#getToolkit()">getToolkit</A></B>()</CODE><BR> Returns the toolkit of this frame.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#getWarningString()">getWarningString</A></B>()</CODE><BR> Gets the warning string that is displayed with this window.</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="../../java/awt/Window.html#hide()">hide</A></B>()</CODE><BR> Hide this Window, its subcomponents, and all of its owned children.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#isShowing()">isShowing</A></B>()</CODE><BR> Checks if this Window is showing on screen.</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="../../java/awt/Window.html#pack()">pack</A></B>()</CODE><BR> Causes this Window to be sized to fit the preferred size and layouts of its subcomponents.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#postEvent(java.awt.Event)">postEvent</A></B>(<A HREF="../../java/awt/Event.html">Event</A> e)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1 replaced by <code>dispatchEvent(AWTEvent)</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#processEvent(java.awt.AWTEvent)">processEvent</A></B>(<A HREF="../../java/awt/AWTEvent.html">AWTEvent</A> e)</CODE><BR> Processes events on this window.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Window.html#processWindowEvent(java.awt.event.WindowEvent)">processWindowEvent</A></B>(<A HREF="../../java/awt/event/WindowEvent.html">WindowEvent</A> e)</CODE><BR> Processes window events occurring on this window by dispatching them to any registered WindowListener objects.</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="../../java/awt/Window.html#removeWindowListener(java.awt.event.WindowListener)">removeWindowListener</A></B>(<A HREF="../../java/awt/event/WindowListener.html">WindowListener</A> l)</CODE><BR> Removes the specified window listener so that it no longer
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?