component.html
来自「API資料大全」· HTML 代码 · 共 1,194 行 · 第 1/5 页
HTML
1,194 行
<BR> A Dialog is a top-level window with a title and a border that is typically used to take some form of input from the user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/FileDialog.html">FileDialog</A></B></CODE><BR> The <code>FileDialog</code> class displays a dialog window from which the user can select a file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/Frame.html">Frame</A></B></CODE><BR> A Frame is a top-level window with a title and a border.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/Label.html">Label</A></B></CODE><BR> A <code>Label</code> object is a component for placing text in a container.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/List.html">List</A></B></CODE><BR> The <code>List</code> component presents the user with a scrolling list of text items.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/Panel.html">Panel</A></B></CODE><BR> <code>Panel</code> is the simplest container class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/Scrollbar.html">Scrollbar</A></B></CODE><BR> The <code>Scrollbar</code> class embodies a scroll bar, a familiar user-interface object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/ScrollPane.html">ScrollPane</A></B></CODE><BR> A container class which implements automatic horizontal and/or vertical scrolling for a single child component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/TextArea.html">TextArea</A></B></CODE><BR> A <code>TextArea</code> object is a multi-line region that displays text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/TextComponent.html">TextComponent</A></B></CODE><BR> The <code>TextComponent</code> class is the superclass of any component that allows the editing of some text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/TextField.html">TextField</A></B></CODE><BR> A <code>TextField</code> object is a text component that allows for the editing of a single line of text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/Window.html">Window</A></B></CODE><BR> A <code>Window</code> object is a top-level window with no borders and no menubar.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/package-summary.html">java.awt</A> that return <A HREF="../../../java/awt/Component.html">Component</A></FONT></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>Component.</B><B><A HREF="../../../java/awt/Component.html#getComponentAt(int, int)">getComponentAt</A></B>(int x, int y)</CODE><BR> Determines if this component or one of its immediate subcomponents contains the (<i>x</i>, <i>y</i>) location, and if so, returns the containing component.</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>Component.</B><B><A HREF="../../../java/awt/Component.html#locate(int, int)">locate</A></B>(int x, int y)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by getComponentAt(int, int).</I></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>Component.</B><B><A HREF="../../../java/awt/Component.html#getComponentAt(java.awt.Point)">getComponentAt</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Returns the component or subcomponent that contains the specified point.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#getComponent(int)">getComponent</A></B>(int n)</CODE><BR> Gets the nth component in this container.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#getComponents()">getComponents</A></B>()</CODE><BR> Gets all the components in this container.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#add(java.awt.Component)">add</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Adds the specified component to the end of this container.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#add(java.lang.String, java.awt.Component)">add</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Adds the specified component to this container.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#add(java.awt.Component, int)">add</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, int index)</CODE><BR> Adds the specified component to this container at the given position.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#getComponentAt(int, int)">getComponentAt</A></B>(int x, int y)</CODE><BR> Locates the component that contains the x,y position.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#locate(int, int)">locate</A></B>(int x, int y)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>getComponentAt(int, int)</code>.</I></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>Container.</B><B><A HREF="../../../java/awt/Container.html#getComponentAt(java.awt.Point)">getComponentAt</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Gets the component that contains the specified point.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#findComponentAt(int, int)">findComponentAt</A></B>(int x, int y)</CODE><BR> Locates the visible child component that contains the specified position.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#findComponentAt(java.awt.Point)">findComponentAt</A></B>(<A HREF="../../../java/awt/Point.html">Point</A> p)</CODE><BR> Locates the visible child component that contains the specified point.</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>Window.</B><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></TABLE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?