📄 jcheckbox.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/swing/JCheckBox.html#JCheckBox(javax.swing.Action)">JCheckBox</A></B>(<A HREF="../../javax/swing/Action.html">Action</A> a)</CODE><BR> Creates a check box where properties are taken from the Action supplied.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/swing/JCheckBox.html#JCheckBox(javax.swing.Icon)">JCheckBox</A></B>(<A HREF="../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates an initially unselected check box with an icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/swing/JCheckBox.html#JCheckBox(javax.swing.Icon, boolean)">JCheckBox</A></B>(<A HREF="../../javax/swing/Icon.html">Icon</A> icon, boolean selected)</CODE><BR> Creates a check box with an icon and specifies whether or not it is initially selected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/swing/JCheckBox.html#JCheckBox(java.lang.String)">JCheckBox</A></B>(<A HREF="../../java/lang/String.html">String</A> text)</CODE><BR> Creates an initially unselected check box with text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/swing/JCheckBox.html#JCheckBox(java.lang.String, boolean)">JCheckBox</A></B>(<A HREF="../../java/lang/String.html">String</A> text, boolean selected)</CODE><BR> Creates a check box with text and specifies whether or not it is initially selected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/swing/JCheckBox.html#JCheckBox(java.lang.String, javax.swing.Icon)">JCheckBox</A></B>(<A HREF="../../java/lang/String.html">String</A> text, <A HREF="../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates an initially unselected check box with the specified text and icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/swing/JCheckBox.html#JCheckBox(java.lang.String, javax.swing.Icon, boolean)">JCheckBox</A></B>(<A HREF="../../java/lang/String.html">String</A> text, <A HREF="../../javax/swing/Icon.html">Icon</A> icon, boolean selected)</CODE><BR> Creates a check box with text and icon, and specifies whether or not it is initially selected.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/JCheckBox.html#configurePropertiesFromAction(javax.swing.Action)">configurePropertiesFromAction</A></B>(<A HREF="../../javax/swing/Action.html">Action</A> a)</CODE><BR> Factory method which sets the ActionEvent source's properties according to values from the Action instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JCheckBox.html#createActionPropertyChangeListener(javax.swing.Action)">createActionPropertyChangeListener</A></B>(<A HREF="../../javax/swing/Action.html">Action</A> a)</CODE><BR> Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance.</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/JCheckBox.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE><BR> Gets the AccessibleContext associated with this JCheckBox.</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/JCheckBox.html#getUIClassID()">getUIClassID</A></B>()</CODE><BR> Returns a string that specifies the name of the L&F class that renders 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="../../javax/swing/JCheckBox.html#isBorderPaintedFlat()">isBorderPaintedFlat</A></B>()</CODE><BR> Returns whether the border should be painted flat.</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/JCheckBox.html#paramString()">paramString</A></B>()</CODE><BR> Returns a string representation of this JCheckBox.</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/JCheckBox.html#setBorderPaintedFlat(boolean)">setBorderPaintedFlat</A></B>(boolean b)</CODE><BR> Sets whether the border should be painted flat.</TD></TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -