public class DefaultMetalTheme extends MetalTheme
MetalThemeの具象実装です。 デフォルトのテーマの変更方法については、MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)を参照してください。 
 
 DefaultMetalThemeによって返されるすべての色は完全に不透明です。
 
DefaultMetalThemeは、多くのコントロールで太字フォントを使用します。 すべてのコントロール(内部フレームのタイトルやクライアントで装飾したフレームのタイトル・バーを除く)がプレーン・フォントを使用するようにするには、次のいずれかを行います。 
 swing.boldMetalをfalseに設定します。 たとえば、java -Dswing.boldMetal=false MyAppです。 
 swing.boldMetalをBoolean.FALSEに設定します。 たとえば、UIManager.put("swing.boldMetal", Boolean.FALSE); 
 swing.boldMetalを設定すると、同じ名前のシステム・プロパティよりも優先して使用されます。 デフォルト・プロパティを設定したあとはMetalLookAndFeelを再インストールし、以前に作成したウィジェットのUIをすべて更新する必要があります。 そうしない場合は結果が定義できません。 次に、この方法を示します。 
 
   // turn off bold fonts
   UIManager.put("swing.boldMetal", Boolean.FALSE);
   // re-install the Metal Look and Feel
   UIManager.setLookAndFeel(new MetalLookAndFeel());
   // Update the ComponentUIs for all Components. This
   // needs to be invoked for all windows.
   SwingUtilities.updateComponentTreeUI(rootComponent);
 
 
 警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートがjava.beansパッケージに追加されています。 XMLEncoderを参照してください。 
| コンストラクタ | 説明 | 
|---|---|
DefaultMetalTheme() | 
DefaultMetalThemeのインスタンスを生成し、それを返します。 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
FontUIResource | 
getControlTextFont() | 
 コントロール・テキスト・フォントを返します。 
 | 
FontUIResource | 
getMenuTextFont() | 
 メニュー・テキスト・フォントを返します。 
 | 
String | 
getName() | 
 このテーマの名前を返します。 
 | 
protected ColorUIResource | 
getPrimary1() | 
 Primary 1カラーを返します。 
 | 
protected ColorUIResource | 
getPrimary2() | 
 Primary 2カラーを返します。 
 | 
protected ColorUIResource | 
getPrimary3() | 
 Primary 3カラーを返します。 
 | 
protected ColorUIResource | 
getSecondary1() | 
 Secondary 1カラーを返します。 
 | 
protected ColorUIResource | 
getSecondary2() | 
 Secondary 2カラーを返します。 
 | 
protected ColorUIResource | 
getSecondary3() | 
 Secondary 3カラーを返します。 
 | 
FontUIResource | 
getSubTextFont() | 
 サブテキスト・フォントを返します。 
 | 
FontUIResource | 
getSystemTextFont() | 
 システム・テキスト・フォントを返します。 
 | 
FontUIResource | 
getUserTextFont() | 
 ユーザー・テキスト・フォントを返します。 
 | 
FontUIResource | 
getWindowTitleFont() | 
 ウィンドウ・タイトル・フォントを返します。 
 | 
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForegroundpublic String getName()
"Steel"を返します。 getName、クラスMetalThemeprotected ColorUIResource getPrimary1()
getPrimary1、クラスMetalThemeprotected ColorUIResource getPrimary2()
getPrimary2、クラスMetalThemeprotected ColorUIResource getPrimary3()
getPrimary3、クラスMetalThemeprotected ColorUIResource getSecondary1()
getSecondary1、クラスMetalThemeprotected ColorUIResource getSecondary2()
getSecondary2、クラスMetalThemeprotected ColorUIResource getSecondary3()
getSecondary3、クラスMetalThemepublic FontUIResource getControlTextFont()
getControlTextFont、クラスMetalThemepublic FontUIResource getSystemTextFont()
getSystemTextFont、クラスMetalThemepublic FontUIResource getUserTextFont()
getUserTextFont、クラスMetalThemepublic FontUIResource getMenuTextFont()
getMenuTextFont、クラスMetalThemepublic FontUIResource getWindowTitleFont()
getWindowTitleFont、クラスMetalThemepublic FontUIResource getSubTextFont()
getSubTextFont、クラスMetalTheme バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。 
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved.  Use is subject to license terms.  Documentation Redistribution Policyも参照してください。