The following code, and select and paste it into public static void main (String [] arg) {}, the front of the main interface class.
Of course, also you need to import the front,
import javax.swing.UIManager;
try {
UIManager.setLookAndFeel ( "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); // Nimbus style, later jdk6 update10 version will appear
//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());// current system style
//UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");//Motif style, blue-black
//UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());// cross-platform the Java-style
//UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");//windows style
//UIManager.setLookAndFeel("javax.swing.plaf.windows.WindowsLookAndFeel");/ / windows style
//UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");//java style
//UIManager.setLookAndFeel("com.apple.mrj.swing.MacLookAndFeel");// to be investigated,
The catch} (Exception E) {
e.printStackTrace ();
}
---------------------
OF: Zhankun Lin
Source: CSDN
description: https: //blog.csdn .net / zklth / article / details / 6279938
Disclaimer: This article is a blogger original article, reproduced, please attach Bowen link!