コード以下、及び公共の静的な無効メイン(文字列[]引数){}、メインインタフェースクラスの前部にそれを選択して貼り付けます。
もちろん、あなたは前をインポートする必要があり、
輸入javax.swing.UIManager;
{試します
UIManager.setLookAndFeel( "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); //ニンバスのスタイル、後でJDK6 update10のバージョンが表示されます
//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());//電流をシステムスタイル
//UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");//Motifスタイル、ブルーブラック
//UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());//クロスプラットフォームJavaスタイル
//UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");//windowsスタイル
//UIManager.setLookAndFeel("javax.swing.plaf.windows.WindowsLookAndFeel");/ / Windowsスタイルの
//UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");//javaスタイル
調査する//UIManager.setLookAndFeel("com.apple.mrj.swing.MacLookAndFeel");//、
キャッチ}(例外E){
e.printStackTrace();
}
---------------------
OF:Zhankun林
出典:CSDN
説明します。https://blog.csdn .NET / zklth /記事/詳細/ 6279938
免責条項:この記事はブロガーのオリジナルの記事、再現され、ボーエンのリンクを添付してください!