⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icon.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>&nbsp;parentComponent,                  <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;message,                  <A HREF="../../../java/lang/String.html">String</A>&nbsp;title,                  int&nbsp;messageType,                  <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>&nbsp;parentComponent,                  <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;message,                  <A HREF="../../../java/lang/String.html">String</A>&nbsp;title,                  int&nbsp;optionType,                  int&nbsp;messageType,                  <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>&nbsp;parentComponent,                 <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;message,                 <A HREF="../../../java/lang/String.html">String</A>&nbsp;title,                 int&nbsp;optionType,                 int&nbsp;messageType,                 <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon,                 <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;options,                 <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;initialValue)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>&nbsp;parentComponent,                          <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;message,                          <A HREF="../../../java/lang/String.html">String</A>&nbsp;title,                          int&nbsp;messageType,                          <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>&nbsp;parentComponent,                          <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;message,                          <A HREF="../../../java/lang/String.html">String</A>&nbsp;title,                          int&nbsp;optionType,                          int&nbsp;messageType,                          <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>&nbsp;parentComponent,                         <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;message,                         <A HREF="../../../java/lang/String.html">String</A>&nbsp;title,                         int&nbsp;optionType,                         int&nbsp;messageType,                         <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon,                         <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;options,                         <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;initialValue)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<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>&nbsp;parentComponent,                        <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;message,                        <A HREF="../../../java/lang/String.html">String</A>&nbsp;title,                        int&nbsp;messageType,                        <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon,                        <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;selectionValues,                        <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;initialSelectionValue)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;newIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the icon to display.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<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&nbsp;top,                  int&nbsp;left,                  int&nbsp;bottom,                  int&nbsp;right,                  <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;tileIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<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>&nbsp;c,                    <A HREF="../../../java/awt/FontMetrics.html">FontMetrics</A>&nbsp;fm,                    <A HREF="../../../java/lang/String.html">String</A>&nbsp;text,                    <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon,                    int&nbsp;verticalAlignment,                    int&nbsp;horizontalAlignment,                    int&nbsp;verticalTextPosition,                    int&nbsp;horizontalTextPosition,                    <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;viewR,                    <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;iconR,                    <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;textR,                    int&nbsp;textIconGap)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<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>&nbsp;fm,                    <A HREF="../../../java/lang/String.html">String</A>&nbsp;text,                    <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon,                    int&nbsp;verticalAlignment,                    int&nbsp;horizontalAlignment,                    int&nbsp;verticalTextPosition,                    int&nbsp;horizontalTextPosition,                    <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;viewR,                    <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;iconR,                    <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;textR,                    int&nbsp;textIconGap)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;disabledIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)).</TD></TR></TABLE>&nbsp;<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>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;text,          <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;text,                  <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 + -