📄 icon.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JCheckBoxMenuItem.html#JCheckBoxMenuItem(java.lang.String, javax.swing.Icon, boolean)">JCheckBoxMenuItem</A></B>(<A HREF="../../../java/lang/String.html">String</A> text, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon, boolean b)</CODE><BR> Creates a check box menu item with the specified text, icon, and selection state.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JToggleButton.html#JToggleButton(javax.swing.Icon)">JToggleButton</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates an initially unselected toggle button with the specified image but no text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JToggleButton.html#JToggleButton(javax.swing.Icon, boolean)">JToggleButton</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon, boolean selected)</CODE><BR> Creates a toggle button with the specified image and selection state, but no text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JToggleButton.html#JToggleButton(java.lang.String, javax.swing.Icon)">JToggleButton</A></B>(<A HREF="../../../java/lang/String.html">String</A> text, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates a toggle button that has the specified text and image, and that is initially unselected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JToggleButton.html#JToggleButton(java.lang.String, javax.swing.Icon, boolean)">JToggleButton</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 toggle button with the specified text, image, and selection state.</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, 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><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JOptionPane.html#JOptionPane(java.lang.Object, int, int, javax.swing.Icon)">JOptionPane</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> message, int messageType, int optionType, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates an instance of <code>JOptionPane</code> to display a message with the specified message type, options, and icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JOptionPane.html#JOptionPane(java.lang.Object, int, int, javax.swing.Icon, java.lang.Object[])">JOptionPane</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> message, int messageType, int optionType, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon, <A HREF="../../../java/lang/Object.html">Object</A>[] options)</CODE><BR> Creates an instance of JOptionPane to display a message with the specified message type, icon, and options.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JOptionPane.html#JOptionPane(java.lang.Object, int, int, javax.swing.Icon, java.lang.Object[], java.lang.Object)">JOptionPane</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> message, int messageType, int optionType, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon, <A HREF="../../../java/lang/Object.html">Object</A>[] options, <A HREF="../../../java/lang/Object.html">Object</A> initialValue)</CODE><BR> Creates an instance of <code>JOptionPane</code> to display a message with the specified message type, icon, and options, with the initially-selected option specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JButton.html#JButton(javax.swing.Icon)">JButton</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates a button with an icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JButton.html#JButton(java.lang.String, javax.swing.Icon)">JButton</A></B>(<A HREF="../../../java/lang/String.html">String</A> text, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates a button with initial text and an icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/AbstractAction.html#AbstractAction(java.lang.String, javax.swing.Icon)">AbstractAction</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Defines an <code>Action</code> object with the specified description string and a the specified icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JLabel.html#JLabel(java.lang.String, javax.swing.Icon, int)">JLabel</A></B>(<A HREF="../../../java/lang/String.html">String</A> text, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon, int horizontalAlignment)</CODE><BR> Creates a <code>JLabel</code> instance with the specified text, image, and horizontal alignment.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JLabel.html#JLabel(javax.swing.Icon, int)">JLabel</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> image, int horizontalAlignment)</CODE><BR> Creates a <code>JLabel</code> instance with the specified image and horizontal alignment.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JLabel.html#JLabel(javax.swing.Icon)">JLabel</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> image)</CODE><BR> Creates a <code>JLabel</code> instance with the specified image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JRadioButton.html#JRadioButton(javax.swing.Icon)">JRadioButton</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates an initially unselected radio button with the specified image but no text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JRadioButton.html#JRadioButton(javax.swing.Icon, boolean)">JRadioButton</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon, boolean selected)</CODE><BR> Creates a radio button with the specified image and selection state, but no text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JRadioButton.html#JRadioButton(java.lang.String, javax.swing.Icon)">JRadioButton</A></B>(<A HREF="../../../java/lang/String.html">String</A> text, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates a radio button that has the specified text and image, and that is initially unselected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JRadioButton.html#JRadioButton(java.lang.String, javax.swing.Icon, boolean)">JRadioButton</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 radio button that has the specified text, image, and selection state.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JRadioButtonMenuItem.html#JRadioButtonMenuItem(javax.swing.Icon)">JRadioButtonMenuItem</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates a <code>JRadioButtonMenuItem</code> with an icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JRadioButtonMenuItem.html#JRadioButtonMenuItem(java.lang.String, javax.swing.Icon)">JRadioButtonMenuItem</A></B>(<A HREF="../../../java/lang/String.html">String</A> text, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates a radio button menu item with the specified text and <code>Icon</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JRadioButtonMenuItem.html#JRadioButtonMenuItem(javax.swing.Icon, boolean)">JRadioButtonMenuItem</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon, boolean selected)</CODE><BR> Creates a radio button menu item with the specified image and selection state, but no text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JRadioButtonMenuItem.html#JRadioButtonMenuItem(java.lang.String, javax.swing.Icon, boolean)">JRadioButtonMenuItem</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 radio button menu item that has the specified text, image, and selection state.</TD></TR></TABLE> <P><A NAME="javax.swing.border"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../javax/swing/Icon.html">Icon</A> in <A HREF="../../../javax/swing/border/package-summary.html">javax.swing.border</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Fields in <A HREF="../../../javax/swing/border/package-summary.html">javax.swing.border</A> declared as <A HREF="../../../javax/swing/Icon.html">Icon</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B>MatteBorder.</B><B><A HREF="../../../javax/swing/border/MatteBorder.html#tileIcon">tileIcon</A></B></CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -