📄 jcheckbox.html
字号:
<DD>Creates an initially unselected check box with text.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the check box.</DL></DD></DL><HR><A NAME="JCheckBox(javax.swing.Action)"><!-- --></A><H3>JCheckBox</H3><PRE>public <B>JCheckBox</B>(<A HREF="../../javax/swing/Action.html">Action</A> a)</PRE><DL><DD>Creates a check box where properties are taken from the Action supplied.<DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="JCheckBox(java.lang.String, boolean)"><!-- --></A><H3>JCheckBox</H3><PRE>public <B>JCheckBox</B>(<A HREF="../../java/lang/String.html">String</A> text, boolean selected)</PRE><DL><DD>Creates a check box with text and specifies whether or not it is initially selected.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the check box.<DD><CODE>selected</CODE> - a boolean value indicating the initial selection state. If <code>true</code> the check box is selected</DL></DD></DL><HR><A NAME="JCheckBox(java.lang.String, javax.swing.Icon)"><!-- --></A><H3>JCheckBox</H3><PRE>public <B>JCheckBox</B>(<A HREF="../../java/lang/String.html">String</A> text, <A HREF="../../javax/swing/Icon.html">Icon</A> icon)</PRE><DL><DD>Creates an initially unselected check box with the specified text and icon.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the check box.<DD><CODE>icon</CODE> - the Icon image to display</DL></DD></DL><HR><A NAME="JCheckBox(java.lang.String, javax.swing.Icon, boolean)"><!-- --></A><H3>JCheckBox</H3><PRE>public <B>JCheckBox</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 check box with text and icon, and specifies whether or not it is initially selected.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the check box.<DD><CODE>icon</CODE> - the Icon image to display<DD><CODE>selected</CODE> - a boolean value indicating the initial selection state. If <code>true</code> the check box is selected</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="setBorderPaintedFlat(boolean)"><!-- --></A><H3>setBorderPaintedFlat</H3><PRE>public void <B>setBorderPaintedFlat</B>(boolean b)</PRE><DL><DD>Sets whether the border should be painted flat. This is usually set to true when a JCheckBox instance is used as a renderer in a component such as a JTable or JTree.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - if true, the border is painted flat.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JCheckBox.html#isBorderPaintedFlat()"><CODE>isBorderPaintedFlat()</CODE></A></DL></DD></DL><HR><A NAME="isBorderPaintedFlat()"><!-- --></A><H3>isBorderPaintedFlat</H3><PRE>public boolean <B>isBorderPaintedFlat</B>()</PRE><DL><DD>Returns whether the border should be painted flat.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JCheckBox.html#setBorderPaintedFlat(boolean)"><CODE>setBorderPaintedFlat(boolean)</CODE></A></DL></DD></DL><HR><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 a string that specifies 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></CO
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -