component.html
来自「API資料大全」· HTML 代码 · 共 1,274 行 · 第 1/5 页
HTML
1,274 行
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#addInputMethodListener(java.awt.event.InputMethodListener)">addInputMethodListener</A></B>(<A HREF="../../java/awt/event/InputMethodListener.html">InputMethodListener</A> l)</CODE><BR> Adds the specified input method listener to receive input method events from this 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><A HREF="../../java/awt/Component.html#addKeyListener(java.awt.event.KeyListener)">addKeyListener</A></B>(<A HREF="../../java/awt/event/KeyListener.html">KeyListener</A> l)</CODE><BR> Adds the specified key listener to receive key events from this 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><A HREF="../../java/awt/Component.html#addMouseListener(java.awt.event.MouseListener)">addMouseListener</A></B>(<A HREF="../../java/awt/event/MouseListener.html">MouseListener</A> l)</CODE><BR> Adds the specified mouse listener to receive mouse events from this 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><A HREF="../../java/awt/Component.html#addMouseMotionListener(java.awt.event.MouseMotionListener)">addMouseMotionListener</A></B>(<A HREF="../../java/awt/event/MouseMotionListener.html">MouseMotionListener</A> l)</CODE><BR> Adds the specified mouse motion listener to receive mouse motion events from this 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><A HREF="../../java/awt/Component.html#addNotify()">addNotify</A></B>()</CODE><BR> Makes this Component displayable by connecting it to a 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/Component.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A></B>(<A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A> listener)</CODE><BR> Add a PropertyChangeListener to the listener list.</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/Component.html#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">addPropertyChangeListener</A></B>(<A HREF="../../java/lang/String.html">String</A> propertyName, <A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A> listener)</CODE><BR> Add a PropertyChangeListener for a specific property.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#bounds()">bounds</A></B>()</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>getBounds()</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#checkImage(java.awt.Image, java.awt.image.ImageObserver)">checkImage</A></B>(<A HREF="../../java/awt/Image.html">Image</A> image, <A HREF="../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Returns the status of the construction of a screen representation of the specified image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)">checkImage</A></B>(<A HREF="../../java/awt/Image.html">Image</A> image, int width, int height, <A HREF="../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Returns the status of the construction of a screen representation of the specified image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/awt/AWTEvent.html">AWTEvent</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent)">coalesceEvents</A></B>(<A HREF="../../java/awt/AWTEvent.html">AWTEvent</A> existingEvent, <A HREF="../../java/awt/AWTEvent.html">AWTEvent</A> newEvent)</CODE><BR> Potentially coalesce an event being posted with an existing event.</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/Component.html#contains(int, int)">contains</A></B>(int x, int y)</CODE><BR> Checks whether this component "contains" the specified point, where <code>x</code> and <code>y</code> are defined to be relative to the coordinate system of this component.</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/Component.html#contains(java.awt.Point)">contains</A></B>(<A HREF="../../java/awt/Point.html">Point</A> p)</CODE><BR> Checks whether this component "contains" the specified point, where the point's <i>x</i> and <i>y</i> coordinates are defined to be relative to the coordinate system of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Image.html">Image</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#createImage(java.awt.image.ImageProducer)">createImage</A></B>(<A HREF="../../java/awt/image/ImageProducer.html">ImageProducer</A> producer)</CODE><BR> Creates an image from the specified image producer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Image.html">Image</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#createImage(int, int)">createImage</A></B>(int width, int height)</CODE><BR> Creates an off-screen drawable image to be used for double buffering.</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/Component.html#deliverEvent(java.awt.Event)">deliverEvent</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 e)</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><A HREF="../../java/awt/Component.html#disable()">disable</A></B>()</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>setEnabled(boolean)</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/Component.html#disableEvents(long)">disableEvents</A></B>(long eventsToDisable)</CODE><BR> Disables the events defined by the specified event mask parameter from being delivered to this 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><A HREF="../../java/awt/Component.html#dispatchEvent(java.awt.AWTEvent)">dispatchEvent</A></B>(<A HREF="../../java/awt/AWTEvent.html">AWTEvent</A> e)</CODE><BR> Dispatches an event to this component or one of its sub components.</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/Component.html#doLayout()">doLayout</A></B>()</CODE><BR> Prompts the layout manager to lay out this 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><A HREF="../../java/awt/Component.html#enable()">enable</A></B>()</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>setEnabled(boolean)</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><A HREF="../../java/awt/Component.html#enable(boolean)">enable</A></B>(boolean b)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>setEnabled(boolean)</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/Component.html#enableEvents(long)">enableEvents</A></B>(long eventsToEnable)</CODE><BR> Enables the events defined by the specified event mask parameter to be delivered to this 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><A HREF="../../java/awt/Component.html#enableInputMethods(boolean)">enableInputMethods</A></B>(boolean enable)</CODE><BR> Enables or disables input method support for this component.</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/Component.html#firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)">firePropertyChange</A></B>(<A HREF="../../java/lang/String.html">String</A> propertyName, <A HREF="../../java/lang/Object.html">Object</A> oldValue, <A HREF="../../java/lang/Object.html">Object</A> newValue)</CODE><BR> Support for reporting bound property changes.</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/Component.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE><BR> Get the AccessibleContext associated with this Component</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#getAlignmentX()">getAlignmentX</A></B>()</CODE><BR> Returns the alignment along the x axis.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#getAlignmentY()">getAlignmentY</A></B>()</CODE><BR> Returns the alignment along the y axis.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Color.html">Color</A></CODE></FONT></TD>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?