Java tutorial
//package com.java2s; import javax.swing.UIManager; public class Main { /** * Set up default Windows look and feel if available; * otherwise, ignore and do nothing. */ public static void setWindowsLookAndFeel() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception ignore) { } } }