📄 icon.html
字号:
<BR> Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#showMessageDialog(java.awt.Component, java.lang.Object, java.lang.String, int, javax.swing.Icon)">showMessageDialog</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> parentComponent, <A HREF="../../../java/lang/Object.html">Object</A> message, <A HREF="../../../java/lang/String.html">String</A> title, int messageType, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Brings up a dialog displaying a message, specifying all parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#showConfirmDialog(java.awt.Component, java.lang.Object, java.lang.String, int, int, javax.swing.Icon)">showConfirmDialog</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> parentComponent, <A HREF="../../../java/lang/Object.html">Object</A> message, <A HREF="../../../java/lang/String.html">String</A> title, int optionType, int messageType, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Brings up a modal dialog with a specified icon, where the number of choices is determined by the <code>optionType</code> parameter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#showOptionDialog(java.awt.Component, java.lang.Object, java.lang.String, int, int, javax.swing.Icon, java.lang.Object[], java.lang.Object)">showOptionDialog</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> parentComponent, <A HREF="../../../java/lang/Object.html">Object</A> message, <A HREF="../../../java/lang/String.html">String</A> title, int optionType, int messageType, <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> Brings up a modal dialog with a specified icon, where the initial choice is dermined by the <code>initialValue</code> parameter and the number of choices is determined by the <code>optionType</code> parameter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#showInternalMessageDialog(java.awt.Component, java.lang.Object, java.lang.String, int, javax.swing.Icon)">showInternalMessageDialog</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> parentComponent, <A HREF="../../../java/lang/Object.html">Object</A> message, <A HREF="../../../java/lang/String.html">String</A> title, int messageType, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Brings up an internal dialog panel displaying a message, specifying all parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#showInternalConfirmDialog(java.awt.Component, java.lang.Object, java.lang.String, int, int, javax.swing.Icon)">showInternalConfirmDialog</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> parentComponent, <A HREF="../../../java/lang/Object.html">Object</A> message, <A HREF="../../../java/lang/String.html">String</A> title, int optionType, int messageType, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Brings up an internal dialog panel with a specified icon, where the number of choices is determined by the <code>optionType</code> parameter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#showInternalOptionDialog(java.awt.Component, java.lang.Object, java.lang.String, int, int, javax.swing.Icon, java.lang.Object[], java.lang.Object)">showInternalOptionDialog</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> parentComponent, <A HREF="../../../java/lang/Object.html">Object</A> message, <A HREF="../../../java/lang/String.html">String</A> title, int optionType, int messageType, <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> Brings up an internal dialog panel with a specified icon, where the initial choice is dermined by the <code>initialValue</code> parameter and the number of choices is determined by the <code>optionType</code> parameter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#showInternalInputDialog(java.awt.Component, java.lang.Object, java.lang.String, int, javax.swing.Icon, java.lang.Object[], java.lang.Object)">showInternalInputDialog</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> parentComponent, <A HREF="../../../java/lang/Object.html">Object</A> message, <A HREF="../../../java/lang/String.html">String</A> title, int messageType, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon, <A HREF="../../../java/lang/Object.html">Object</A>[] selectionValues, <A HREF="../../../java/lang/Object.html">Object</A> initialSelectionValue)</CODE><BR> Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified.</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>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#setIcon(javax.swing.Icon)">setIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> newIcon)</CODE><BR> Sets the icon to display.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/swing/border/MatteBorder.html">MatteBorder</A></CODE></FONT></TD><TD><CODE><B>BorderFactory.</B><B><A HREF="../../../javax/swing/BorderFactory.html#createMatteBorder(int, int, int, int, javax.swing.Icon)">createMatteBorder</A></B>(int top, int left, int bottom, int right, <A HREF="../../../javax/swing/Icon.html">Icon</A> tileIcon)</CODE><BR> Creates a matte-look border that consists of multiple tiles of a specified icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>SwingUtilities.</B><B><A HREF="../../../javax/swing/SwingUtilities.html#layoutCompoundLabel(javax.swing.JComponent, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)">layoutCompoundLabel</A></B>(<A HREF="../../../javax/swing/JComponent.html">JComponent</A> c, <A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A> fm, <A HREF="../../../java/lang/String.html">String</A> text, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> viewR, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> iconR, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> textR, int textIconGap)</CODE><BR> Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>SwingUtilities.</B><B><A HREF="../../../javax/swing/SwingUtilities.html#layoutCompoundLabel(java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)">layoutCompoundLabel</A></B>(<A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A> fm, <A HREF="../../../java/lang/String.html">String</A> text, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> viewR, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> iconR, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> textR, int textIconGap)</CODE><BR> Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.</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>JInternalFrame.</B><B><A HREF="../../../javax/swing/JInternalFrame.html#setFrameIcon(javax.swing.Icon)">setFrameIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Sets an image to be displayed in the titlebar of the frame (usually in the top-left corner).</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>JLabel.</B><B><A HREF="../../../javax/swing/JLabel.html#setIcon(javax.swing.Icon)">setIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Defines the icon this component will display.</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>JLabel.</B><B><A HREF="../../../javax/swing/JLabel.html#setDisabledIcon(javax.swing.Icon)">setDisabledIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> disabledIcon)</CODE><BR> Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)).</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../javax/swing/package-summary.html">javax.swing</A> with parameters of type <A HREF="../../../javax/swing/Icon.html">Icon</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JMenuItem.html#JMenuItem(javax.swing.Icon)">JMenuItem</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates a menuItem with an icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JMenuItem.html#JMenuItem(java.lang.String, javax.swing.Icon)">JMenuItem</A></B>(<A HREF="../../../java/lang/String.html">String</A> text, <A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates a menu item with the supplied text and icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JCheckBoxMenuItem.html#JCheckBoxMenuItem(javax.swing.Icon)">JCheckBoxMenuItem</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A> icon)</CODE><BR> Creates an initially unselected check box menu item with an icon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/JCheckBoxMenuItem.html#JCheckBoxMenuItem(java.lang.String, javax.swing.Icon)">JCheckBoxMenuItem</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 menu item with the specified text and icon.</TD></TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -