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

📄 lookandfeel.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>static&nbsp;<A HREF="../../javax/swing/ComponentInputMap.html">ComponentInputMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/LookAndFeel.html#makeComponentInputMap(javax.swing.JComponent, java.lang.Object[])">makeComponentInputMap</A></B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;c,                      <A HREF="../../java/lang/Object.html">Object</A>[]&nbsp;keys)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a ComponentInputMap from <code>keys</code>.</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/LookAndFeel.html#makeIcon(java.lang.Class, java.lang.String)">makeIcon</A></B>(<A HREF="../../java/lang/Class.html">Class</A>&nbsp;baseClass,         <A HREF="../../java/lang/String.html">String</A>&nbsp;gifFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Utility method that creates a UIDefaults.LazyValue that creates an ImageIcon UIResource for the specified <code>gifFile</code> filename.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/InputMap.html">InputMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/LookAndFeel.html#makeInputMap(java.lang.Object[])">makeInputMap</A></B>(<A HREF="../../java/lang/Object.html">Object</A>[]&nbsp;keys)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a InputMap from <code>keys</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/swing/text/JTextComponent.KeyBinding.html">JTextComponent.KeyBinding</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/LookAndFeel.html#makeKeyBindings(java.lang.Object[])">makeKeyBindings</A></B>(<A HREF="../../java/lang/Object.html">Object</A>[]&nbsp;keyBindingList)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method for building lists of KeyBindings.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/LookAndFeel.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string that displays and identifies this object's properties.</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><A HREF="../../javax/swing/LookAndFeel.html#uninitialize()">uninitialize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UIManager.setLookAndFeel calls this method just before we're replaced by a new default look and feel.</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/LookAndFeel.html#uninstallBorder(javax.swing.JComponent)">uninstallBorder</A></B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method for un-installing a component's default  border on the specified component if the border is  currently an instance of UIResource.</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#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="LookAndFeel()"><!-- --></A><H3>LookAndFeel</H3><PRE>public <B>LookAndFeel</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="installColors(javax.swing.JComponent, java.lang.String, java.lang.String)"><!-- --></A><H3>installColors</H3><PRE>public static void <B>installColors</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;c,                                 <A HREF="../../java/lang/String.html">String</A>&nbsp;defaultBgName,                                 <A HREF="../../java/lang/String.html">String</A>&nbsp;defaultFgName)</PRE><DL><DD>Convenience method for initializing a component's foreground and background color properties with values from the current defaults table.  The properties are only set if the current value is either null or a UIResource.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the target component for installing default color/font properties<DD><CODE>defaultBgName</CODE> - the key for the default background<DD><CODE>defaultFgName</CODE> - the key for the default foreground<DT><B>See Also: </B><DD><A HREF="../../javax/swing/LookAndFeel.html#installColorsAndFont(javax.swing.JComponent, java.lang.String, java.lang.String, java.lang.String)"><CODE>installColorsAndFont(javax.swing.JComponent, java.lang.String, java.lang.String, java.lang.String)</CODE></A>, <A HREF="../../javax/swing/UIManager.html#getColor(java.lang.Object)"><CODE>UIManager.getColor(java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="installColorsAndFont(javax.swing.JComponent, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>installColorsAndFont</H3><PRE>public static void <B>installColorsAndFont</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;c,                                        <A HREF="../../java/lang/String.html">String</A>&nbsp;defaultBgName,                                        <A HREF="../../java/lang/String.html">String</A>&nbsp;defaultFgName,                                        <A HREF="../../java/lang/String.html">String</A>&nbsp;defaultFontName)</PRE><DL><DD>Convenience method for initializing a components foreground background and font properties with values from the current defaults table.  The properties are only set if the current value is either null or a UIResource.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the target component for installing default color/font properties<DD><CODE>defaultBgName</CODE> - the key for the default background<DD><CODE>defaultFgName</CODE> - the key for the default foreground<DD><CODE>defaultFontName</CODE> - the key for the default font<DT><B>See Also: </B><DD><A HREF="../../javax/swing/LookAndFeel.html#installColors(javax.swing.JComponent, java.lang.String, java.lang.String)"><CODE>installColors(javax.swing.JComponent, java.lang.String, java.lang.String)</CODE></A>, <A HREF="../../javax/swing/UIManager.html#getColor(java.lang.Object)"><CODE>UIManager.getColor(java.lang.Object)</CODE></A>, <A HREF="../../javax/swing/UIManager.html#getFont(java.lang.Object)"><CODE>UIManager.getFont(java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="installBorder(javax.swing.JComponent, java.lang.String)"><!-- --></A><H3>installBorder</H3><PRE>public static void <B>installBorder</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;c,                                 <A HREF="../../java/lang/String.html">String</A>&nbsp;defaultBorderName)</PRE><DL><DD>Convenience method for installing a component's default Border  object on the specified component if either the border is  currently null or already an instance of UIResource.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the target component for installing default border<DD><CODE>defaultBorderName</CODE> - the key specifying the default border</DL></DD></DL><HR><A NAME="uninstallBorder(javax.swing.JComponent)"><!-- --></A><H3>uninstallBorder</H3><PRE>public static void <B>uninstallBorder</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;c)</PRE><DL><DD>Convenience method for un-installing a component's default  border on the specified component if the border is  currently an instance of UIResource.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the target component for uninstalling default border</DL></DD></DL><HR><A NAME="makeKeyBindings(java.lang.Object[])"><!-- --></A><H3>makeKeyBindings</H3><PRE>public static <A HREF="../../javax/swing/text/JTextComponent.KeyBinding.html">JTextComponent.KeyBinding</A>[] <B>makeKeyBindings</B>(<A HREF="../../java/lang/Object.html">Object</A>[]&nbsp;keyBindingList)</PRE><DL><DD>Convenience method for building lists of KeyBindings. <p> Return an array of KeyBindings, one for each KeyStroke,Action pair in <b>keyBindingList</b>.  A KeyStroke can either be a string in the format specified by the <code>KeyStroke.getKeyStroke</code>  method or a KeyStroke object. <p> Actions are strings.  Here's an example: <pre> 	JTextComponent.KeyBinding[] multilineBindings = makeKeyBindings( new Object[] {          "UP", DefaultEditorKit.upAction,        "DOWN", DefaultEditorKit.downAction,     "PAGE_UP", DefaultEditorKit.pageUpAction,   "PAGE_DOWN", DefaultEditorKit.pageDownAction,       "ENTER", DefaultEditorKit.insertBreakAction,         "TAB", DefaultEditorKit.insertTabAction  }); </pre><DD><DL><DT><B>Parameters:</B><DD><CODE>keyBindingList</CODE> - an array of KeyStroke,Action pairs<DT><B>Returns:</B><DD>an array of KeyBindings</DL></DD></DL><HR><A NAME="makeInputMap(java.lang.Object[])"><!-- --></A><H3>makeInputMap</H3><PRE>public static <A HREF="../../javax/swing/InputMap.html">InputMap</A> <B>makeInputMap</B>(<A HREF="../../java/lang/Object.html">Object</A>[]&nbsp;keys)</PRE><DL><DD>Creates a InputMap 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="makeComponentInputMap(javax.swing.JComponent, java.lang.Object[])"><!-- --></A><H3>makeComponentInputMap</H3><PRE>public static <A HREF="../../javax/swing/ComponentInputMap.html">ComponentInputMap</A> <B>makeComponentInputMap</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;c,

⌨️ 快捷键说明

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