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

📄 icon.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#getIcon()">getIcon</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the icon this pane displays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B>UIDefaults.</B><B><A HREF="../../../javax/swing/UIDefaults.html#getIcon(java.lang.Object)">getIcon</A></B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the value of <code>key</code> is an <code>Icon</code> return it, otherwise return <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B>JInternalFrame.</B><B><A HREF="../../../javax/swing/JInternalFrame.html#getFrameIcon()">getFrameIcon</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the image displayed in the title bar 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;<A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B>JLabel.</B><B><A HREF="../../../javax/swing/JLabel.html#getIcon()">getIcon</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the graphic image (glyph, icon) that the label displays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B>JLabel.</B><B><A HREF="../../../javax/swing/JLabel.html#getDisabledIcon()">getDisabledIcon</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of the disabledIcon property if it's been set, If it hasn't been set and the value of the icon property is an ImageIcon, we compute a "grayed out" version of the icon and update the disabledIcon property with that.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B>JFileChooser.</B><B><A HREF="../../../javax/swing/JFileChooser.html#getIcon(java.io.File)">getIcon</A></B>(<A HREF="../../../java/io/File.html">File</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the icon for this file or type of file, depending on the system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B>UIManager.</B><B><A HREF="../../../javax/swing/UIManager.html#getIcon(java.lang.Object)">getIcon</A></B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an Icon from the defaults table.</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods 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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>JTextPane.</B><B><A HREF="../../../javax/swing/JTextPane.html#insertIcon(javax.swing.Icon)">insertIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts an icon into the document as a replacement for the currently selected content.</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>JTabbedPane.</B><B><A HREF="../../../javax/swing/JTabbedPane.html#insertTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String, int)">insertTab</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;title,          <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon,          <A HREF="../../../java/awt/Component.html">Component</A>&nbsp;component,          <A HREF="../../../java/lang/String.html">String</A>&nbsp;tip,          int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a <code>component</code>, at <code>index</code>, represented by a <code>title</code> and/or <code>icon</code>, either of which may be <code>null</code>.</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>JTabbedPane.</B><B><A HREF="../../../javax/swing/JTabbedPane.html#addTab(java.lang.String, javax.swing.Icon, java.awt.Component, java.lang.String)">addTab</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;title,       <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon,       <A HREF="../../../java/awt/Component.html">Component</A>&nbsp;component,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;tip)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a <code>component</code> and <code>tip</code> represented by a <code>title</code>  and/or <code>icon</code>, either of which can be <code>null</code>.</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>JTabbedPane.</B><B><A HREF="../../../javax/swing/JTabbedPane.html#addTab(java.lang.String, javax.swing.Icon, java.awt.Component)">addTab</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;title,       <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon,       <A HREF="../../../java/awt/Component.html">Component</A>&nbsp;component)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a <code>component</code> represented by a <code>title</code> and/or <code>icon</code>,  either of which can be <code>null</code>.</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>JTabbedPane.</B><B><A HREF="../../../javax/swing/JTabbedPane.html#setIconAt(int, javax.swing.Icon)">setIconAt</A></B>(int&nbsp;index,          <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the icon at <code>index</code> to <code>icon</code> which can be <code>null</code>.</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>JTabbedPane.</B><B><A HREF="../../../javax/swing/JTabbedPane.html#setDisabledIconAt(int, javax.swing.Icon)">setDisabledIconAt</A></B>(int&nbsp;index,                  <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;disabledIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the disabled icon at <code>index</code> to <code>icon</code> which can be <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B>JTabbedPane.</B><B><A HREF="../../../javax/swing/JTabbedPane.html#indexOfTab(javax.swing.Icon)">indexOfTab</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;icon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the first tab index with a given <code>icon</code>, or -1 if no tab has this icon.</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>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.html#setIcon(javax.swing.Icon)">setIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;defaultIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the button's default icon.</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>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.html#setPressedIcon(javax.swing.Icon)">setPressedIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;pressedIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the pressed icon for the button.</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>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.html#setSelectedIcon(javax.swing.Icon)">setSelectedIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;selectedIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the selected icon for the button.</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>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.html#setRolloverIcon(javax.swing.Icon)">setRolloverIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;rolloverIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the rollover icon for the button.</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>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.html#setRolloverSelectedIcon(javax.swing.Icon)">setRolloverSelectedIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;rolloverSelectedIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the rollover selected icon for the button.</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>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.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;Sets the disabled icon for the button.</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>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.html#setDisabledSelectedIcon(javax.swing.Icon)">setDisabledSelectedIcon</A></B>(<A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;disabledSelectedIcon)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the disabled selection icon for the button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>AbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.html#init(java.lang.String, javax.swing.Icon)">init</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;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>JMenuItem.</B><B><A HREF="../../../javax/swing/JMenuItem.html#init(java.lang.String, javax.swing.Icon)">init</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;Initialize the menu item with the specified text and 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/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B>JOptionPane.</B><B><A HREF="../../../javax/swing/JOptionPane.html#showInputDialog(java.awt.Component, java.lang.Object, java.lang.String, int, javax.swing.Icon, java.lang.Object[], java.lang.Object)">showInputDialog</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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -