component.html
来自「API資料大全」· HTML 代码 · 共 1,274 行 · 第 1/5 页
HTML
1,274 行
Store the width/height of this component into "return value" <b>rv</b> and return <b>rv</b>.</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/Component.html#getToolkit()">getToolkit</A></B>()</CODE><BR> Gets the toolkit of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Component.html#getTreeLock()">getTreeLock</A></B>()</CODE><BR> Gets the locking object for AWT component-tree and layout Gets this component's locking object (the object that owns the thread sychronization monitor) for AWT component-tree and layout operations.</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#getWidth()">getWidth</A></B>()</CODE><BR> Return the current width of this component.</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#getX()">getX</A></B>()</CODE><BR> Return the current x coordinate of the components origin.</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#getY()">getY</A></B>()</CODE><BR> Return the current y coordinate of the components origin.</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#gotFocus(java.awt.Event, java.lang.Object)">gotFocus</A></B>(<A HREF="../../java/awt/Event.html">Event</A> evt, <A HREF="../../java/lang/Object.html">Object</A> what)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).</I></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#handleEvent(java.awt.Event)">handleEvent</A></B>(<A HREF="../../java/awt/Event.html">Event</A> evt)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1 replaced by processEvent(AWTEvent).</I></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#hasFocus()">hasFocus</A></B>()</CODE><BR> Returns true if this Component has the keyboard focus.</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#hide()">hide</A></B>()</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>setVisible(boolean)</code>.</I></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#imageUpdate(java.awt.Image, int, int, int, int, int)">imageUpdate</A></B>(<A HREF="../../java/awt/Image.html">Image</A> img, int infoflags, int x, int y, int w, int h)</CODE><BR> Repaints the component when the image has changed.</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#inside(int, int)">inside</A></B>(int x, int y)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by contains(int, int).</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#invalidate()">invalidate</A></B>()</CODE><BR> Invalidates 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#isDisplayable()">isDisplayable</A></B>()</CODE><BR> Determines whether this component is displayable.</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#isDoubleBuffered()">isDoubleBuffered</A></B>()</CODE><BR> Returns true if this component is painted to an offscreen image ("buffer") that's copied to the screen later.</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#isEnabled()">isEnabled</A></B>()</CODE><BR> Determines whether this component is enabled.</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#isFocusTraversable()">isFocusTraversable</A></B>()</CODE><BR> Returns the value of a flag that indicates whether this component can be traversed using Tab or Shift-Tab keyboard focus traversal.</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#isLightweight()">isLightweight</A></B>()</CODE><BR> A lightweight component doesn't have a native toolkit peer.</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#isOpaque()">isOpaque</A></B>()</CODE><BR> Returns true if this component is completely opaque, returns false by default.</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#isShowing()">isShowing</A></B>()</CODE><BR> Determines whether this component is showing on screen.</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#isValid()">isValid</A></B>()</CODE><BR> Determines whether this component is valid.</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#isVisible()">isVisible</A></B>()</CODE><BR> Determines whether this component should be visible when its parent is visible.</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#keyDown(java.awt.Event, int)">keyDown</A></B>(<A HREF="../../java/awt/Event.html">Event</A> evt, int key)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).</I></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#keyUp(java.awt.Event, int)">keyUp</A></B>(<A HREF="../../java/awt/Event.html">Event</A> evt, int key)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).</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#layout()">layout</A></B>()</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>doLayout()</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#list()">list</A></B>()</CODE><BR> Prints a listing of this component to the standard system output stream <code>System.out</code>.</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#list(java.io.PrintStream)">list</A></B>(<A HREF="../../java/io/PrintStream.html">PrintStream</A> out)</CODE><BR> Prints a listing of this component to the specified output stream.</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#list(java.io.PrintStream, int)">list</A></B>(<A HREF="../../java/io/PrintStream.html">PrintStream</A> out, int indent)</CODE><BR> Prints out a list, starting at the specified indention, to the specified print stream.</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#list(java.io.PrintWriter)">list</A></B>(<A HREF="../../java/io/PrintWriter.html">PrintWriter</A> out)</CODE><BR> Prints a listing to the specified print writer.</TD></TR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?