📄 jradiobutton.html
字号:
<DD>Creates an unselected radio button with the specified text.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the string displayed on the radio button</DL></DD></DL><HR><A NAME="JRadioButton(java.lang.String, boolean)"><!-- --></A><H3>JRadioButton</H3><PRE>public <B>JRadioButton</B>(<A HREF="../../java/lang/String.html">String</A> text, boolean selected)</PRE><DL><DD>Creates a radio button with the specified text and selection state.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the string displayed on the radio button<DD><CODE>selected</CODE> - if true, the button is initially selected; otherwise, the button is initially unselected</DL></DD></DL><HR><A NAME="JRadioButton(java.lang.String, javax.swing.Icon)"><!-- --></A><H3>JRadioButton</H3><PRE>public <B>JRadioButton</B>(<A HREF="../../java/lang/String.html">String</A> text, <A HREF="../../javax/swing/Icon.html">Icon</A> icon)</PRE><DL><DD>Creates a radio button that has the specified text and image, and that is initially unselected.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the string displayed on the radio button<DD><CODE>icon</CODE> - the image that the button should display</DL></DD></DL><HR><A NAME="JRadioButton(java.lang.String, javax.swing.Icon, boolean)"><!-- --></A><H3>JRadioButton</H3><PRE>public <B>JRadioButton</B>(<A HREF="../../java/lang/String.html">String</A> text, <A HREF="../../javax/swing/Icon.html">Icon</A> icon, boolean selected)</PRE><DL><DD>Creates a radio button that has the specified text, image, and selection state.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the string displayed on the radio button<DD><CODE>icon</CODE> - the image that the button should display</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="updateUI()"><!-- --></A><H3>updateUI</H3><PRE>public void <B>updateUI</B>()</PRE><DL><DD>Notification from the UIFactory that the L&F has changed.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/JToggleButton.html#updateUI()">updateUI</A></CODE> in class <CODE><A HREF="../../javax/swing/JToggleButton.html">JToggleButton</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#updateUI()"><CODE>JComponent.updateUI()</CODE></A></DL></DD></DL><HR><A NAME="getUIClassID()"><!-- --></A><H3>getUIClassID</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getUIClassID</B>()</PRE><DL><DD>Returns the name of the L&F class that renders this component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/JToggleButton.html#getUIClassID()">getUIClassID</A></CODE> in class <CODE><A HREF="../../javax/swing/JToggleButton.html">JToggleButton</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>String "RadioButtonUI"<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#getUIClassID()"><CODE>JComponent.getUIClassID()</CODE></A>, <A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>UIDefaults.getUI(javax.swing.JComponent)</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> a)</PRE><DL><DD>Factory method which sets the ActionEvent source's properties according to values from the Action instance. The properties which are set may differ for 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="createActionPropertyChangeListener(javax.swing.Action)"><!-- --></A><H3>createActionPropertyChangeListener</H3><PRE>protected <A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A> <B>createActionPropertyChangeListener</B>(<A HREF="../../javax/swing/Action.html">Action</A> a)</PRE><DL><DD>Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance. Subclasses may override this in order to provide their own PropertyChangeListe
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -