📄 metallookandfeel.html
字号:
</TABLE> <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="MetalLookAndFeel()"><!-- --></A><H3>MetalLookAndFeel</H3><PRE>public <B>MetalLookAndFeel</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="getName()"><!-- --></A><H3>getName</H3><PRE>public <A HREF="../../../../java/lang/String.html">String</A> <B>getName</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></B></DD><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.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/LookAndFeel.html#getName()">getName</A></CODE> in class <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></DL></DD></DL><HR><A NAME="getID()"><!-- --></A><H3>getID</H3><PRE>public <A HREF="../../../../java/lang/String.html">String</A> <B>getID</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></B></DD><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.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/LookAndFeel.html#getID()">getID</A></CODE> in class <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></DL></DD></DL><HR><A NAME="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public <A HREF="../../../../java/lang/String.html">String</A> <B>getDescription</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></B></DD><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.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/LookAndFeel.html#getDescription()">getDescription</A></CODE> in class <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></DL></DD></DL><HR><A NAME="isNativeLookAndFeel()"><!-- --></A><H3>isNativeLookAndFeel</H3><PRE>public boolean <B>isNativeLookAndFeel</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></B></DD><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.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/LookAndFeel.html#isNativeLookAndFeel()">isNativeLookAndFeel</A></CODE> in class <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></DL></DD></DL><HR><A NAME="isSupportedLookAndFeel()"><!-- --></A><H3>isSupportedLookAndFeel</H3><PRE>public boolean <B>isSupportedLookAndFeel</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></B></DD><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>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/LookAndFeel.html#isSupportedLookAndFeel()">isSupportedLookAndFeel</A></CODE> in class <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.LookAndFeel</CODE></DD><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="initClassDefaults(javax.swing.UIDefaults)"><!-- --></A><H3>initClassDefaults</H3><PRE>protected void <B>initClassDefaults</B>(<A HREF="../../../../javax/swing/UIDefaults.html">UIDefaults</A> table)</PRE><DL><DD>Initialize the uiClassID to BasicComponentUI mapping. The JComponent classes define their own uiClassID constants (see AbstractComponent.getUIClassID). This table must map those constants to a BasicComponentUI class of the appropriate type.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/basic/BasicLookAndFeel.html#initClassDefaults(javax.swing.UIDefaults)">initClassDefaults</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/basic/BasicLookAndFeel.html">BasicLookAndFeel</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicLookAndFeel.html#getDefaults()"><CODE>BasicLookAndFeel.getDefaults()</CODE></A></DL></DD></DL><HR><A NAME="initSystemColorDefaults(javax.swing.UIDefaults)"><!-- --></A><H3>initSystemColorDefaults</H3><PRE>protected void <B>initSystemColorDefaults</B>(<A HREF="../../../../javax/swing/UIDefaults.html">UIDefaults</A> table)</PRE><DL><DD>Load the SystemColors into the defaults table. The keys for SystemColor defaults are the same as the names of the public fields in SystemColor.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/basic/BasicLookAndFeel.html#initSystemColorDefaults(javax.swing.UIDefaults)">initSystemColorDefaults</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/basic/BasicLookAndFeel.html">BasicLookAndFeel</A></CODE></DL></DD></DL><HR><A NAME="initComponentDefaults(javax.swing.UIDefaults)"><!-- --></A><H3>initComponentDefaults</H3><PRE>protected void <B>initComponentDefaults</B>(<A HREF="../../../../javax/swing/UIDefaults.html">UIDefaults</A> table)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/basic/BasicLookAndFeel.html#initComponentDefaults(javax.swing.UIDefaults)">initComponentDefaults</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/basic/BasicLookAndFeel.html">BasicLookAndFeel</A></CODE></DL></DD></DL><HR><A NAME="createDefaultTheme()"><!-- --></A><H3>createDefaultTheme</H3><PRE>protected void <B>createDefaultTheme</B>()</PRE><DL></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><B>Description copied from class: <CODE><A HREF="../../../../javax/swing/LookAndFeel.html">LookAndFeel</A></CODE></B></DD><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>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/basic/BasicLookAndFeel.html#getDefaults()">getDefaults</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/basic/BasicLookAndFeel.html">BasicLookAndFeel</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.LookAndFeel</CODE></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/LookAndFeel.html#initialize()"><CODE>LookAndFeel.initialize()</CODE></A>, <A HREF="../../../../javax/swing/LookAndFeel.html#uninitialize()"><CODE>LookAndFeel.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="setCurrentTheme(javax.swing.plaf.metal.MetalTheme)"><!-- --></A><H3>setCurrentTheme</H3><PRE>public static void <B>setCurrentTheme</B>(<A HREF="../../../../javax/swing/plaf/metal/MetalTheme.html">MetalTheme</A> theme)</PRE><DL></DL><HR><A NAME="getControlTextFont()"><!-- --></A><H3>getControlTextFont</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/FontUIResource.html">FontUIResource</A> <B>getControlTextFont</B>()</PRE><DL></DL><HR><A NAME="getSystemTextFont()"><!-- --></A><H3>getSystemTextFont</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/FontUIResource.html">FontUIResource</A> <B>getSystemTextFont</B>()</PRE><DL></DL><HR><A NAME="getUserTextFont()"><!-- --></A><H3>getUserTextFont</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/FontUIResource.html">FontUIResource</A> <B>getUserTextFont</B>()</PRE><DL></DL><HR><A NAME="getMenuTextFont()"><!-- --></A><H3>getMenuTextFont</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/FontUIResource.html">FontUIResource</A> <B>getMenuTextFont</B>()</PRE><DL></DL><HR><A NAME="getWindowTitleFont()"><!-- --></A><H3>getWindowTitleFont</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/FontUIResource.html">FontUIResource</A> <B>getWindowTitleFont</B>()</PRE><DL></DL><HR><A NAME="getSubTextFont()"><!-- --></A><H3>getSubTextFont</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/FontUIResource.html">FontUIResource</A> <B>getSubTextFont</B>()</PRE><DL></DL><HR><A NAME="getDesktopColor()"><!-- --></A><H3>getDesktopColor</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/ColorUIResource.html">ColorUIResource</A> <B>getDesktopColor</B>()</PRE><DL></DL><HR><A NAME="getFocusColor()"><!-- --></A><H3>getFocusColor</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/ColorUIResource.html">ColorUIResource</A> <B>getFocusColor</B>()</PRE><DL></DL><HR><A NAME="getWhite()"><!-- --></A><H3>getWhite</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/ColorUIResource.html">ColorUIResource</A> <B>getWhite</B>()</PRE><DL></DL><HR><A NAME="getBlack()"><!-- --></A><H3>getBlack</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/ColorUIResource.html">ColorUIResource</A> <B>getBlack</B>()</PRE><DL></DL><HR><A NAME="getControl()"><!-- --></A><H3>getControl</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/ColorUIResource.html">ColorUIResource</A> <B>getControl</B>()</PRE><DL></DL><HR><A NAME="getControlShadow()"><!-- --></A><H3>getControlShadow</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/ColorUIResource.html">ColorUIResource</A> <B>getControlShadow</B>()</PRE><DL></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -