📄 jcheckboxmenuitem.html
字号:
</TR></TABLE><A NAME="JCheckBoxMenuItem()"><!-- --></A><H3>JCheckBoxMenuItem</H3><PRE>public <B>JCheckBoxMenuItem</B>()</PRE><DL><DD>Creates an initially unselected check box menu item with no set text or icon.</DL><HR><A NAME="JCheckBoxMenuItem(javax.swing.Icon)"><!-- --></A><H3>JCheckBoxMenuItem</H3><PRE>public <B>JCheckBoxMenuItem</B>(<A HREF="../../javax/swing/Icon.html">Icon</A> icon)</PRE><DL><DD>Creates an initially unselected check box menu item with an icon.<DD><DL><DT><B>Parameters:</B><DD><CODE>icon</CODE> - the icon of the CheckBoxMenuItem.</DL></DD></DL><HR><A NAME="JCheckBoxMenuItem(java.lang.String)"><!-- --></A><H3>JCheckBoxMenuItem</H3><PRE>public <B>JCheckBoxMenuItem</B>(<A HREF="../../java/lang/String.html">String</A> text)</PRE><DL><DD>Creates an initially unselected check box menu item with text.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the CheckBoxMenuItem</DL></DD></DL><HR><A NAME="JCheckBoxMenuItem(javax.swing.Action)"><!-- --></A><H3>JCheckBoxMenuItem</H3><PRE>public <B>JCheckBoxMenuItem</B>(<A HREF="../../javax/swing/Action.html">Action</A> a)</PRE><DL><DD>Creates a menu item whose properties are taken from the Action supplied.<DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="JCheckBoxMenuItem(java.lang.String, javax.swing.Icon)"><!-- --></A><H3>JCheckBoxMenuItem</H3><PRE>public <B>JCheckBoxMenuItem</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 menu item with the specified text and icon.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the CheckBoxMenuItem<DD><CODE>icon</CODE> - the icon of the CheckBoxMenuItem</DL></DD></DL><HR><A NAME="JCheckBoxMenuItem(java.lang.String, boolean)"><!-- --></A><H3>JCheckBoxMenuItem</H3><PRE>public <B>JCheckBoxMenuItem</B>(<A HREF="../../java/lang/String.html">String</A> text, boolean b)</PRE><DL><DD>Creates a check box menu item with the specified text and selection state.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the check box menu item.<DD><CODE>b</CODE> - the selected state of the check box menu item</DL></DD></DL><HR><A NAME="JCheckBoxMenuItem(java.lang.String, javax.swing.Icon, boolean)"><!-- --></A><H3>JCheckBoxMenuItem</H3><PRE>public <B>JCheckBoxMenuItem</B>(<A HREF="../../java/lang/String.html">String</A> text, <A HREF="../../javax/swing/Icon.html">Icon</A> icon, boolean b)</PRE><DL><DD>Creates a check box menu item with the specified text, icon, and selection state.<DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the check box menu item<DD><CODE>icon</CODE> - the icon of the check box menu item<DD><CODE>b</CODE> - the selected state of the check box menu item</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="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/JMenuItem.html#getUIClassID()">getUIClassID</A></CODE> in class <CODE><A HREF="../../javax/swing/JMenuItem.html">JMenuItem</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>"CheckBoxMenuItemUI"<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.JCo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -