📄 abstractbutton.html
字号:
<TD><CODE><B><A HREF="../../javax/swing/AbstractButton.html#getMnemonic()">getMnemonic</A></B>()</CODE><BR> Returns the keyboard mnemonic from the the current model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/ButtonModel.html">ButtonModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/AbstractButton.html#getModel()">getModel</A></B>()</CODE><BR> Returns the model that this button represents.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/AbstractButton.html#getPressedIcon()">getPressedIcon</A></B>()</CODE><BR> Returns the pressed icon for the button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/AbstractButton.html#getRolloverIcon()">getRolloverIcon</A></B>()</CODE><BR> Returns the rollover icon for the button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/AbstractButton.html#getRolloverSelectedIcon()">getRolloverSelectedIcon</A></B>()</CODE><BR> Returns the rollover selection icon for the button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/AbstractButton.html#getSelectedIcon()">getSelectedIcon</A></B>()</CODE><BR> Returns the selected icon for the button.</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/AbstractButton.html#getSelectedObjects()">getSelectedObjects</A></B>()</CODE><BR> Returns an array (length 1) containing the label or <code>null</code> if the button is not selected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/AbstractButton.html#getText()">getText</A></B>()</CODE><BR> Returns the button's text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/plaf/ButtonUI.html">ButtonUI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/AbstractButton.html#getUI()">getUI</A></B>()</CODE><BR> Returns the L&F object that renders 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/AbstractButton.html#getVerticalAlignment()">getVerticalAlignment</A></B>()</CODE><BR> Returns the vertical alignment of the text and icon.</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/AbstractButton.html#getVerticalTextPosition()">getVerticalTextPosition</A></B>()</CODE><BR> Returns the vertical position of the text relative to the icon.</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/AbstractButton.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> This is overridden to return false if the current <code>Icon</code>'s <code>Image</code> is not equal to the passed in <code>Image</code> <code>img</code>.</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/AbstractButton.html#init(java.lang.String, javax.swing.Icon)">init</A></B>(<A HREF="../../java/lang/String.html">String</A> text, <A HREF="../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> </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/AbstractButton.html#isBorderPainted()">isBorderPainted</A></B>()</CODE><BR> Returns whether the border should be painted.</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/AbstractButton.html#isContentAreaFilled()">isContentAreaFilled</A></B>()</CODE><BR> Checks whether the "content area" of the button should be filled.</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/AbstractButton.html#isFocusPainted()">isFocusPainted</A></B>()</CODE><BR> Returns whether focus should be painted.</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/AbstractButton.html#isFocusTraversable()">isFocusTraversable</A></B>()</CODE><BR> Identifies whether or not this component can receive the focus.</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/AbstractButton.html#isRolloverEnabled()">isRolloverEnabled</A></B>()</CODE><BR> Checks whether rollover effects are 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="../../javax/swing/AbstractButton.html#isSelected()">isSelected</A></B>()</CODE><BR> Returns the state of the button.</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/AbstractButton.html#paintBorder(java.awt.Graphics)">paintBorder</A></B>(<A HREF="../../java/awt/Graphics.html">Graphics</A> g)</CODE><BR> Paint the button's border if <code>BorderPainted</code> property is true.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/AbstractButton.html#paramString()">paramString</A></B>()</CODE><BR> Returns a string representation of this <code>AbstractButton</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="../../javax/swing/AbstractButton.html#removeActionListener(java.awt.event.ActionListener)">removeActionListener</A></B>(<A HREF="../../java/awt/event/ActionListener.html">ActionListener</A> l)</CODE><BR> Removes an <code>ActionListener</code> from the button.</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/AbstractButton.html#removeChangeListener(javax.swing.event.ChangeListener)">removeChangeListener</A></B>(<A HREF="../../javax/swing/event/ChangeListener.html">ChangeListener</A> l)</CODE><BR> Removes a ChangeListener from the button.</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/AbstractButton.html#removeItemListener(java.awt.event.ItemListener)">removeItemListener</A></B>(<A HREF="../../java/awt/event/ItemListener.html">ItemListener</A> l)</CODE><BR> Removes an <code>ItemListener</code> from the button.</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/AbstractButton.html#setAction(javax.swing.Action)">setAction</A></B>(<A HREF="../../javax/swing/Action.html">Action</A> a)</CODE><BR> Sets the <code>Action</code> for the <code>ActionEvent</code> source.</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/AbstractButton.html#setActionCommand(java.lang.String)">setActionCommand</A></B>(<A HREF="../../java/lang/String.html">String</A> actionCommand)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -