⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jbutton.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<A NAME="isDefaultButton()"><!-- --></A><H3>isDefaultButton</H3><PRE>public boolean <B>isDefaultButton</B>()</PRE><DL><DD>Returns whether or not this button is the default button on the RootPane.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>"boolean"<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JRootPane.html#setDefaultButton(javax.swing.JButton)"><CODE>JRootPane.setDefaultButton(javax.swing.JButton)</CODE></A></DL></DD></DL><HR><A NAME="isDefaultCapable()"><!-- --></A><H3>isDefaultCapable</H3><PRE>public boolean <B>isDefaultCapable</B>()</PRE><DL><DD>Returns whether or not this button is capable of being the default button on the RootPane.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>"boolean"<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JButton.html#setDefaultCapable(boolean)"><CODE>setDefaultCapable(boolean)</CODE></A>, <A HREF="../../javax/swing/JButton.html#isDefaultButton()"><CODE>isDefaultButton()</CODE></A>, <A HREF="../../javax/swing/JRootPane.html#setDefaultButton(javax.swing.JButton)"><CODE>JRootPane.setDefaultButton(javax.swing.JButton)</CODE></A></DL></DD></DL><HR><A NAME="setDefaultCapable(boolean)"><!-- --></A><H3>setDefaultCapable</H3><PRE>public void <B>setDefaultCapable</B>(boolean&nbsp;defaultCapable)</PRE><DL><DD>Sets whether or not this button is capable of being the default button on the RootPane.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>"boolean"<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JButton.html#isDefaultCapable()"><CODE>isDefaultCapable()</CODE></A></DL></DD></DL><HR><A NAME="removeNotify()"><!-- --></A><H3>removeNotify</H3><PRE>public void <B>removeNotify</B>()</PRE><DL><DD>Overrides <code>JComponent.removeNotify</code> to check if this button is currently set as the default button on the RootPane, and if so, sets the RootPane's default button to null to ensure the RootPane doesn't hold onto an invalid button reference.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/JComponent.html#removeNotify()">removeNotify</A></CODE> in class <CODE><A HREF="../../javax/swing/JComponent.html">JComponent</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.JComponent</CODE></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)"><CODE>JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)</CODE></A></DL></DD></DL><HR><A NAME="configurePropertiesFromAction(javax.swing.Action)"><!-- --></A><H3>configurePropertiesFromAction</H3><PRE>protected void <B>configurePropertiesFromAction</B>(<A HREF="../../javax/swing/Action.html">Action</A>&nbsp;a)</PRE><DL><DD>Factory method which sets the AbstractButton's properties according to values from the Action instance.  The properties  which get set may differ for AbstractButton subclasses. By default, the properties which get set are Text, Icon Enabled, and ToolTipText.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/AbstractButton.html#configurePropertiesFromAction(javax.swing.Action)">configurePropertiesFromAction</A></CODE> in class <CODE><A HREF="../../javax/swing/AbstractButton.html">AbstractButton</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the Action from which to get the properties, or null<DT><B>Since: </B><DD>1.3</DD><DT><B>See Also: </B><DD><A HREF="../../javax/swing/Action.html"><CODE>Action</CODE></A>, <A HREF="../../javax/swing/AbstractButton.html#setAction(javax.swing.Action)"><CODE>AbstractButton.setAction(javax.swing.Action)</CODE></A></DL></DD></DL><HR><A NAME="paramString()"><!-- --></A><H3>paramString</H3><PRE>protected <A HREF="../../java/lang/String.html">String</A> <B>paramString</B>()</PRE><DL><DD>Returns a string representation of this JButton. This method  is intended to be used only for debugging purposes, and the  content and format of the returned string may vary between       implementations. The returned string may be empty but may not  be <code>null</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/AbstractButton.html#paramString()">paramString</A></CODE> in class <CODE><A HREF="../../javax/swing/AbstractButton.html">AbstractButton</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of this JButton.</DL></DD></DL><HR><A NAME="getAccessibleContext()"><!-- --></A><H3>getAccessibleContext</H3><PRE>public <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A> <B>getAccessibleContext</B>()</PRE><DL><DD>Gets the AccessibleContext associated with this JButton.  For JButtons, the AccessibleContext takes the form of an  AccessibleJButton.  A new AccessibleJButton instance is created if necessary.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/accessibility/Accessible.html#getAccessibleContext()">getAccessibleContext</A></CODE> in interface <CODE><A HREF="../../javax/accessibility/Accessible.html">Accessible</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/JComponent.html#getAccessibleContext()">getAccessibleContext</A></CODE> in class <CODE><A HREF="../../javax/swing/JComponent.html">JComponent</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an AccessibleJButton that serves as the          AccessibleContext of this JButton</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bo

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -