Retrieve the cross-platform look and feel
import javax.swing.UIManager; public class Main { public static void main(String[] argv) throws Exception { String javaLF = UIManager.getCrossPlatformLookAndFeelClassName(); // Install the look and feel UIManager.setLookAndFeel(javaLF); } }