component.html
来自「API資料大全」· HTML 代码 · 共 1,194 行 · 第 1/5 页
HTML
1,194 行
<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> with parameters of type <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>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> void</CODE></FONT></TD><TD><CODE><B>Container.</B><B><A HREF="../../../java/awt/Container.html#add(java.awt.Component, java.lang.Object)">add</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, <A HREF="../../../java/lang/Object.html">Object</A> constraints)</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> void</CODE></FONT></TD><TD><CODE><B>Container.</B><B><A HREF="../../../java/awt/Container.html#add(java.awt.Component, java.lang.Object, int)">add</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, <A HREF="../../../java/lang/Object.html">Object</A> constraints, int index)</CODE><BR> Adds the specified component to this container with the specified constraints at the specified index.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#addImpl(java.awt.Component, java.lang.Object, int)">addImpl</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, <A HREF="../../../java/lang/Object.html">Object</A> constraints, int index)</CODE><BR> Adds the specified component to this container at the specified index.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#remove(java.awt.Component)">remove</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Removes the specified component from this container.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#isAncestorOf(java.awt.Component)">isAncestorOf</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c)</CODE><BR> Checks if the component is contained in the component hierarchy of this container.</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>LayoutManager2.</B><B><A HREF="../../../java/awt/LayoutManager2.html#addLayoutComponent(java.awt.Component, java.lang.Object)">addLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, <A HREF="../../../java/lang/Object.html">Object</A> constraints)</CODE><BR> Adds the specified component to the layout, using the specified constraint object.</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>CardLayout.</B><B><A HREF="../../../java/awt/CardLayout.html#addLayoutComponent(java.awt.Component, java.lang.Object)">addLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, <A HREF="../../../java/lang/Object.html">Object</A> constraints)</CODE><BR> Adds the specified component to this card layout's internal table of names.</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>CardLayout.</B><B><A HREF="../../../java/awt/CardLayout.html#addLayoutComponent(java.lang.String, java.awt.Component)">addLayoutComponent</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> <B>Deprecated.</B> <I>replaced by <code>addLayoutComponent(Component, Object)</code>.</I></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>CardLayout.</B><B><A HREF="../../../java/awt/CardLayout.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Removes the specified component from the layout.</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>ScrollPane.</B><B><A HREF="../../../java/awt/ScrollPane.html#addImpl(java.awt.Component, java.lang.Object, int)">addImpl</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, <A HREF="../../../java/lang/Object.html">Object</A> constraints, int index)</CODE><BR> Adds the specified component to this scroll pane container.</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>GridLayout.</B><B><A HREF="../../../java/awt/GridLayout.html#addLayoutComponent(java.lang.String, java.awt.Component)">addLayoutComponent</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 with the specified name to the layout.</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>GridLayout.</B><B><A HREF="../../../java/awt/GridLayout.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Removes the specified component from the layout.</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>BorderLayout.</B><B><A HREF="../../../java/awt/BorderLayout.html#addLayoutComponent(java.awt.Component, java.lang.Object)">addLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, <A HREF="../../../java/lang/Object.html">Object</A> constraints)</CODE><BR> Adds the specified component to the layout, using the specified constraint object.</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>BorderLayout.</B><B><A HREF="../../../java/awt/BorderLayout.html#addLayoutComponent(java.lang.String, java.awt.Component)">addLayoutComponent</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> <B>Deprecated.</B> <I>replaced by <code>addLayoutComponent(Component, Object)</code>.</I></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>BorderLayout.</B><B><A HREF="../../../java/awt/BorderLayout.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Removes the specified component from this border layout.</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>LayoutManager.</B><B><A HREF="../../../java/awt/LayoutManager.html#addLayoutComponent(java.lang.String, java.awt.Component)">addLayoutComponent</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 with the specified name to the layout.</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>LayoutManager.</B><B><A HREF="../../../java/awt/LayoutManager.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp)</CODE><BR> Removes the specified component from the layout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.awt.peer.LightweightPeer</CODE></FONT></TD><TD><CODE><B>Toolkit.</B><B><A HREF="../../../java/awt/Toolkit.html#createComponent(java.awt.Component)">createComponent</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> target)</CODE><BR> Creates a peer for a component or container.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="../../../java/awt/Container.html">Container</A></CODE></FONT></TD><TD><CODE><B>Toolkit.</B><B><A HREF="../../../java/awt/Toolkit.html#getNativeContainer(java.awt.Component)">getNativeContainer</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> c)</CODE><BR> Give native peers the ability to query the native container given a native component (eg the direct parent may be lightweight).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/dnd/DragGestureRecognizer.html">DragGestureRecognizer</A></CODE></FONT></TD><TD><CODE><B>Toolkit.</B><B><A HREF="../../../java/awt/Toolkit.html#createDragGestureRecognizer(java.lang.Class, java.awt.dnd.DragSource, java.awt.Component, int, java.awt.dnd.DragGestureListener)">createDragGestureRecognizer</A></B>(<A HREF="../../../java/lang/Class.html">Class</A> abstractRecognizerClass, <A HREF="../../../java/awt/dnd/DragSource.html">DragSource</A> ds, <A HREF="../../../java/awt/Component.html">Component</A> c, int srcActions, <A HREF="../../../java/awt/dnd/DragGestureListener.html">DragGestureListener</A> dgl)</CODE><BR> create a concrete, platform dependent, subclass of the abstract DragGestureRecognizer class requested, and associate it with the DragSource, Component and DragGestureListener specified subclasses should override this to provide their own implementation</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>PopupMenu.</B><B><A HREF="../../../java/awt/PopupMenu.html#show(java.awt.Component, int, int)">show</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> origin, int x, int y)</CODE><BR> Shows the popup menu at the x, y position relative to an origin component.</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>GridBagLayout.</B><B><A HREF="../../../java/awt/GridBagLayout.html#setConstraints(java.awt.Component, java.awt.GridBagConstraints)">setConstraints</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> comp, <A HREF="../../../java/awt/GridBagConstraints.html">GridBagConstraints</A> constraints)</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?