📄 jcomponent.html
字号:
Reports a bound property change.</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="../../javax/swing/JComponent.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> Supports reporting bound property changes.</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="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, short, short)">firePropertyChange</A></B>(<A HREF="../../java/lang/String.html">String</A> propertyName, short oldValue, short newValue)</CODE><BR> Reports a bound property change.</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="../../javax/swing/JComponent.html#fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)">fireVetoableChange</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> Supports reporting constrained 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="../../javax/swing/JComponent.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE><BR> Gets the AccessibleContext associated with this JComponent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/event/ActionListener.html">ActionListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getActionForKeyStroke(javax.swing.KeyStroke)">getActionForKeyStroke</A></B>(<A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A> aKeyStroke)</CODE><BR> Returns the object that will perform the action registered for a given keystroke.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/ActionMap.html">ActionMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getActionMap()">getActionMap</A></B>()</CODE><BR> Returns the ActionMap used to determine what Action to fire for particular KeyStroke binding.</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="../../javax/swing/JComponent.html#getAlignmentX()">getAlignmentX</A></B>()</CODE><BR> Overrides <code>Container.getAlignmentX</code> to return the vertical alignment.</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="../../javax/swing/JComponent.html#getAlignmentY()">getAlignmentY</A></B>()</CODE><BR> Overrides <code>Container.getAlignmentY</code> to return the horizontal alignment.</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="../../javax/swing/JComponent.html#getAutoscrolls()">getAutoscrolls</A></B>()</CODE><BR> Returns <i>true</i> if this component automatically scrolls its contents when dragged (when contained in a component that supports scrolling, like JViewport).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/border/Border.html">Border</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getBorder()">getBorder</A></B>()</CODE><BR> Returns the border of this component or null if no border is currently set.</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="../../javax/swing/JComponent.html#getBounds(java.awt.Rectangle)">getBounds</A></B>(<A HREF="../../java/awt/Rectangle.html">Rectangle</A> rv)</CODE><BR> Stores the bounds of this component into "return value" <b>rv</b> and returns <b>rv</b>.</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="../../javax/swing/JComponent.html#getClientProperty(java.lang.Object)">getClientProperty</A></B>(<A HREF="../../java/lang/Object.html">Object</A> key)</CODE><BR> Returns the value of the property with the specified key.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/awt/Graphics.html">Graphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getComponentGraphics(java.awt.Graphics)">getComponentGraphics</A></B>(<A HREF="../../java/awt/Graphics.html">Graphics</A> g)</CODE><BR> Returns the graphics object used to paint 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="../../javax/swing/JComponent.html#getConditionForKeyStroke(javax.swing.KeyStroke)">getConditionForKeyStroke</A></B>(<A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A> aKeyStroke)</CODE><BR> Returns the condition that determines whether a registered action occurs in response to the specified keystroke.</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="../../javax/swing/JComponent.html#getDebugGraphicsOptions()">getDebugGraphicsOptions</A></B>()</CODE><BR> Returns the state of graphics debugging.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Graphics.html">Graphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getGraphics()">getGraphics</A></B>()</CODE><BR> Returns this component's graphics context, which lets you draw on a 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="../../javax/swing/JComponent.html#getHeight()">getHeight</A></B>()</CODE><BR> Returns the current height of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/InputMap.html">InputMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getInputMap()">getInputMap</A></B>()</CODE><BR> Returns the InputMap that is used when the receiver has focus.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/InputMap.html">InputMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getInputMap(int)">getInputMap</A></B>(int condition)</CODE><BR> Returns the InputMap that is used during <code>condition</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/InputVerifier.html">InputVerifier</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getInputVerifier()">getInputVerifier</A></B>()</CODE><BR> Returns the input verifier for this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getInsets()">getInsets</A></B>()</CODE><BR> If a border has been set on this component, returns the border's insets; otherwise calls super.getInsets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getInsets(java.awt.Insets)">getInsets</A></B>(<A HREF="../../java/awt/Insets.html">Insets</A> insets)</CODE><BR> Returns an Insets object containing this component's inset values.</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="../../javax/swing/JComponent.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 this JComponent 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/awt/Point.html">Point</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getLocation(java.awt.Point)">getLocation</A></B>(<A HREF="../../java/awt/Point.html">Point</A> rv)</CODE><BR> Stores the x,y origin of this component into "return value" <b>rv</b> and returns <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/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getMaximumSize()">getMaximumSize</A></B>()</CODE><BR> If the maximum size has been set to a non-null value just returns it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComponent.html#getMinimumSize()">getMinimumSize</A></B>()</CODE><BR> If the minimum size has been set to a non-null value just returns it.</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="../../javax/swing/JComponent.html#getNextFocusableComponent()">getNextFocusableComponent</A></B>()</CODE><BR> Returns the next focusable component or null if the focus manager
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -