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

📄 uimanager.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</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><A HREF="../../javax/swing/UIManager.html#installLookAndFeel(java.lang.String, java.lang.String)">installLookAndFeel</A></B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;name,                   <A HREF="../../java/lang/String.html">String</A>&nbsp;className)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new look and feel and adds it to the current array.</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><A HREF="../../javax/swing/UIManager.html#installLookAndFeel(javax.swing.UIManager.LookAndFeelInfo)">installLookAndFeel</A></B>(<A HREF="../../javax/swing/UIManager.LookAndFeelInfo.html">UIManager.LookAndFeelInfo</A>&nbsp;info)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the specified look and feel to the current array and then calls <A HREF="../../javax/swing/UIManager.html#setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])"><CODE>setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])</CODE></A>.</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><A HREF="../../javax/swing/UIManager.html#put(java.lang.Object, java.lang.Object)">put</A></B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;key,    <A HREF="../../java/lang/Object.html">Object</A>&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stores an object in the defaults table.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/UIManager.html#removeAuxiliaryLookAndFeel(javax.swing.LookAndFeel)">removeAuxiliaryLookAndFeel</A></B>(<A HREF="../../javax/swing/LookAndFeel.html">LookAndFeel</A>&nbsp;laf)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a LookAndFeel from the list of auxiliary look and feels.</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><A HREF="../../javax/swing/UIManager.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A></B>(<A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a PropertyChangeListener from the listener list.</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><A HREF="../../javax/swing/UIManager.html#setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])">setInstalledLookAndFeels</A></B>(<A HREF="../../javax/swing/UIManager.LookAndFeelInfo.html">UIManager.LookAndFeelInfo</A>[]&nbsp;infos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the current array of installed LookAndFeelInfos.</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><A HREF="../../javax/swing/UIManager.html#setLookAndFeel(javax.swing.LookAndFeel)">setLookAndFeel</A></B>(<A HREF="../../javax/swing/LookAndFeel.html">LookAndFeel</A>&nbsp;newLookAndFeel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the current default look and feel using a LookAndFeel object.</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><A HREF="../../javax/swing/UIManager.html#setLookAndFeel(java.lang.String)">setLookAndFeel</A></B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;className)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the current default look and feel using a class name.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="UIManager()"><!-- --></A><H3>UIManager</H3><PRE>public <B>UIManager</B>()</PRE><DL></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="getInstalledLookAndFeels()"><!-- --></A><H3>getInstalledLookAndFeels</H3><PRE>public static <A HREF="../../javax/swing/UIManager.LookAndFeelInfo.html">UIManager.LookAndFeelInfo</A>[] <B>getInstalledLookAndFeels</B>()</PRE><DL><DD>Return an array of objects that provide some information about the LookAndFeel implementations that have been installed with this  software development kit.  The LookAndFeel info objects can be used by an application to construct a menu of look and feel options for  the user or to set the look and feel at start up time.  Note that  we do not return the LookAndFeel classes themselves here to avoid the cost of unnecessarily loading them. <p> Given a LookAndFeelInfo object one can set the current look and feel like this: <pre> UIManager.setLookAndFeel(info.getClassName()); </pre><DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIManager.html#setLookAndFeel(javax.swing.LookAndFeel)"><CODE>setLookAndFeel(javax.swing.LookAndFeel)</CODE></A></DL></DD></DL><HR><A NAME="setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])"><!-- --></A><H3>setInstalledLookAndFeels</H3><PRE>public static void <B>setInstalledLookAndFeels</B>(<A HREF="../../javax/swing/UIManager.LookAndFeelInfo.html">UIManager.LookAndFeelInfo</A>[]&nbsp;infos)                                     throws <A HREF="../../java/lang/SecurityException.html">SecurityException</A></PRE><DL><DD>Replaces the current array of installed LookAndFeelInfos.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIManager.html#getInstalledLookAndFeels()"><CODE>getInstalledLookAndFeels()</CODE></A></DL></DD></DL><HR><A NAME="installLookAndFeel(javax.swing.UIManager.LookAndFeelInfo)"><!-- --></A><H3>installLookAndFeel</H3><PRE>public static void <B>installLookAndFeel</B>(<A HREF="../../javax/swing/UIManager.LookAndFeelInfo.html">UIManager.LookAndFeelInfo</A>&nbsp;info)</PRE><DL><DD>Adds the specified look and feel to the current array and then calls <A HREF="../../javax/swing/UIManager.html#setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])"><CODE>setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])</CODE></A>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - a LookAndFeelInfo object that names the look and feel        and identifies that class that implements it</DL></DD></DL><HR><A NAME="installLookAndFeel(java.lang.String, java.lang.String)"><!-- --></A><H3>installLookAndFeel</H3><PRE>public static void <B>installLookAndFeel</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;name,                                      <A HREF="../../java/lang/String.html">String</A>&nbsp;className)</PRE><DL><DD>Creates a new look and feel and adds it to the current array. Then calls <A HREF="../../javax/swing/UIManager.html#setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])"><CODE>setInstalledLookAndFeels(javax.swing.UIManager.LookAndFeelInfo[])</CODE></A>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a String specifying the name of the look and feel<DD><CODE>className</CODE> - a String specifying the class name that implements the                   look and feel</DL></DD></DL><HR><A NAME="getLookAndFeel()"><!-- --></A><H3>getLookAndFeel</H3><PRE>public static <A HREF="../../javax/swing/LookAndFeel.html">LookAndFeel</A> <B>getLookAndFeel</B>()</PRE><DL><DD>Returns The current default look and feel, or null.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The current default look and feel, or null.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIManager.html#setLookAndFeel(javax.swing.LookAndFeel)"><CODE>setLookAndFeel(javax.swing.LookAndFeel)</CODE></A></DL></DD></DL><HR><A NAME="setLookAndFeel(javax.swing.LookAndFeel)"><!-- --></A><H3>setLookAndFeel</H3><PRE>public static void <B>setLookAndFeel</B>(<A HREF="../../javax/swing/LookAndFeel.html">LookAndFeel</A>&nbsp;newLookAndFeel)                           throws <A HREF="../../javax/swing/UnsupportedLookAndFeelException.html">UnsupportedLookAndFeelException</A></PRE><DL><DD>Set the current default look and feel using a LookAndFeel object.   <p> This is a JavaBeans bound property.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newLookAndFeel</CODE> - the LookAndFeel object<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/swing/UnsupportedLookAndFeelException.html">UnsupportedLookAndFeelException</A></CODE> - If <code>lnf.isSupportedLookAndFeel()</code> is false.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIManager.html#getLookAndFeel()"><CODE>getLookAndFeel()</CODE></A></DL></DD></DL><HR><A NAME="setLookAndFeel(java.lang.String)"><!-- --></A><H3>setLookAndFeel</H3><PRE>public static void <B>setLookAndFeel</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;className)                           throws <A HREF="../../java/lang/ClassNotFoundException.html">ClassNotFoundException</A>,                                  <A HREF="../../java/lang/InstantiationException.html">InstantiationException</A>,                                  <A HREF="../../java/lang/IllegalAccessException.html">IllegalAccessException</A>,                                  <A HREF="../../javax/swing/UnsupportedLookAndFeelException.html">UnsupportedLookAndFeelException</A></PRE><DL><DD>Set the current default look and feel using a class name.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - a string specifying the name of the class that implements        the look and feel<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/ClassNotFoundException.html">ClassNotFoundException</A></CODE> - If the LookAndFeel class could not be found.<DD><CODE><A HREF="../../java/lang/InstantiationException.html">InstantiationException</A></CODE> - If a new instance of the class couldn't be creatd.<DD><CODE><A HREF="../../java/lang/IllegalAccessException.html">IllegalAccessException</A></CODE> - If the class or initializer isn't accessible.<DD><CODE><A HREF="../../javax/swing/UnsupportedLookAndFeelException.html">UnsupportedLookAndFeelException</A></CODE> - If <code>lnf.isSupportedLookAndFeel()</code> is false.</DL></DD></DL><HR><A NAME="getSystemLookAndFeelClassName()"><!-- --></A><H3>getSystemLookAndFeelClassName</H3><PRE>public static <A HREF="../../java/lang/String.html">String</A> <B>getSystemLookAndFeelClassName</B>()</PRE><DL><DD>Returns the name of the LookAndFeel class that implements the native systems look and feel if there is one, otherwise the name of the default cross platform LookAndFeel class.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIManager.html#setLookAndFeel(javax.swing.LookAndFeel)"><CODE>setLookAndFeel(javax.swing.LookAndFeel)</CODE></A>, <A HREF="../../javax/swing/UIManager.html#getCrossPlatformLookAndFeelClassName()"><CODE>getCrossPlatformLookAndFeelClassName()</CODE></A></DL></DD></DL><HR><A NAME="getCrossPlatformLookAndFeelClassName()"><!-- --></A><H3>getCrossPlatformLookAndFeelClassName</H3><PRE>public static <A HREF="../../java/lang/String.html">String</A> <B>getCrossPlatformLookAndFeelClassName</B>()</PRE><DL><DD>Returns the name of the LookAndFeel class that implements the default cross platform look and feel -- the Java Look and Feel (JLF).<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string with the JLF implementation-class<DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIManager.html#setLookAndFeel(javax.swing.LookAndFeel)"><CODE>setLookAndFeel(javax.swing.LookAndFeel)</CODE></A>, <A HREF="../../javax/swing/UIManager.html#getSystemLookAndFeelClassName()"><CODE>getSystemLookAndFeelClassName()</CODE></A></DL></DD></DL><HR><A NAME="getDefaults()"><!-- --></A><H3>getDefaults</H3><PRE>public static <A HREF="../../javax/swing/UIDefaults.html">UIDefaults</A> <B>getDefaults</B>()</PRE><DL><DD>Returns the default values for this look and feel.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an UIDefaults object containing the default values</DL></DD></DL><HR><A NAME="getFont(java.lang.Object)"><!-- --></A><H3>getFont</H3><PRE>public static <A HREF="../../java/awt/Font.html">Font</A> <B>getFont</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>Returns a drawing font from the defaults table.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - an Object specifying the font<DT><B>Returns:</B><DD>the Font object</DL></DD></DL><HR><A NAME="getColor(java.lang.Object)"><!-- --></A><H3>getColor</H3><PRE>

⌨️ 快捷键说明

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