Java tutorial
//package com.java2s; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; public class Main { /** * Apply System Look and Feel to current program. */ public static void setSystemLookAndFeel() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { } catch (InstantiationException e) { } catch (IllegalAccessException e) { } catch (UnsupportedLookAndFeelException e) { } } }