📄 lookandfeel.html
字号:
<A HREF="../../java/lang/Object.html">Object</A>[] keys)</PRE><DL><DD>Creates a ComponentInputMap from <code>keys</code>. <code>keys</code> describes the InputMap, with every even number item being a String giving the KeyStroke as speced in <code>KeyStroke.getKeyStroke(String)</code> (or a KeyStroke), and every odd number item the Object used to determine the associated Action in an ActionMap.<DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="loadKeyBindings(javax.swing.InputMap, java.lang.Object[])"><!-- --></A><H3>loadKeyBindings</H3><PRE>public static void <B>loadKeyBindings</B>(<A HREF="../../javax/swing/InputMap.html">InputMap</A> retMap, <A HREF="../../java/lang/Object.html">Object</A>[] keys)</PRE><DL><DD>Loads the bindings in <code>keys</code> into <code>retMap</code>. This does not remove any existing bindings in <code>retMap</code>. <code>keys</code> describes the InputMap, with every even number item being a String giving the KeyStroke as speced in <code>KeyStroke.getKeyStroke(String)</code> (or a KeyStroke), and every odd number item the Object used to determine the associated Action in an ActionMap.<DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="makeIcon(java.lang.Class, java.lang.String)"><!-- --></A><H3>makeIcon</H3><PRE>public static <A HREF="../../java/lang/Object.html">Object</A> <B>makeIcon</B>(<A HREF="../../java/lang/Class.html">Class</A> baseClass, <A HREF="../../java/lang/String.html">String</A> gifFile)</PRE><DL><DD>Utility method that creates a UIDefaults.LazyValue that creates an ImageIcon UIResource for the specified <code>gifFile</code> filename.</DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public abstract <A HREF="../../java/lang/String.html">String</A> <B>getName</B>()</PRE><DL><DD>Return a short string that identifies this look and feel, e.g. "CDE/Motif". This string should be appropriate for a menu item. Distinct look and feels should have different names, e.g. a subclass of MotifLookAndFeel that changes the way a few components are rendered should be called "CDE/Motif My Way"; something that would be useful to a user trying to select a L&F from a list of names.</DL><HR><A NAME="getID()"><!-- --></A><H3>getID</H3><PRE>public abstract <A HREF="../../java/lang/String.html">String</A> <B>getID</B>()</PRE><DL><DD>Return a string that identifies this look and feel. This string will be used by applications/services that want to recognize well known look and feel implementations. Presently the well known names are "Motif", "Windows", "Mac", "Metal". Note that a LookAndFeel derived from a well known superclass that doesn't make any fundamental changes to the look or feel shouldn't override this method.</DL><HR><A NAME="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public abstract <A HREF="../../java/lang/String.html">String</A> <B>getDescription</B>()</PRE><DL><DD>Return a one line description of this look and feel implementation, e.g. "The CDE/Motif Look and Feel". This string is intended for the user, e.g. in the title of a window or in a ToolTip message.</DL><HR><A NAME="isNativeLookAndFeel()"><!-- --></A><H3>isNativeLookAndFeel</H3><PRE>public abstract boolean <B>isNativeLookAndFeel</B>()</PRE><DL><DD>If the underlying platform has a "native" look and feel, and this is an implementation of it, return true. For example a CDE/Motif look and implementation would return true when the underlying platform was Solaris.</DL><HR><A NAME="isSupportedLookAndFeel()"><!-- --></A><H3>isSupportedLookAndFeel</H3><PRE>public abstract boolean <B>isSupportedLookAndFeel</B>()</PRE><DL><DD>Return true if the underlying platform supports and or permits this look and feel. This method returns false if the look and feel depends on special resources or legal agreements that aren't defined for the current platform.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIManager.html#setLookAndFeel(javax.swing.LookAndFeel)"><CODE>UIManager.setLookAndFeel(javax.swing.LookAndFeel)</CODE></A></DL></DD></DL><HR><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>()</PRE><DL><DD>UIManager.setLookAndFeel calls this method before the first call (and typically the only call) to getDefaults(). Subclasses should do any one-time setup they need here, rather than in a static initializer, because look and feel class objects may be loaded just to discover that isSupportedLookAndFeel() returns false.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/LookAndFeel.html#uninitialize()"><CODE>uninitialize()</CODE></A>, <A HREF="../../javax/swing/UIManager.html#setLookAndFeel(javax.swing.LookAndFeel)"><CODE>UIManager.setLookAndFeel(javax.swing.LookAndFeel)</CODE></A></DL></DD></DL><HR><A NAME="uninitialize()"><!-- --></A><H3>uninitialize</H3><PRE>public void <B>uninitialize</B>()</PRE><DL><DD>UIManager.setLookAndFeel calls this method just before we're replaced by a new default look and feel. Subclasses may choose to free up some resources here.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/LookAndFeel.html#initialize()"><CODE>initialize()</CODE></A></DL></DD></DL><HR><A NAME="getDefaults()"><!-- --></A><H3>getDefaults</H3><PRE>public <A HREF="../../javax/swing/UIDefaults.html">UIDefaults</A> <B>getDefaults</B>()</PRE><DL><DD>This method is called once by UIManager.setLookAndFeel to create the look and feel specific defaults table. Other applications, for example an application builder, may also call this method.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/LookAndFeel.html#initialize()"><CODE>initialize()</CODE></A>, <A HREF="../../javax/swing/LookAndFeel.html#uninitialize()"><CODE>uninitialize()</CODE></A>, <A HREF="../../javax/swing/UIManager.html#setLookAndFeel(javax.swing.LookAndFeel)"><CODE>UIManager.setLookAndFeel(javax.swing.LookAndFeel)</CODE></A></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string that displays and identifies this object's properties.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a String representation of this object</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LookAndFeel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javax/swing/KeyStroke.html"><B>PREV CLASS</B></A> <A HREF="../../javax/swing/MenuSelectionManager.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="LookAndFeel.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -