Here you can find the source of setNativeLookAndFeel()
public static void setNativeLookAndFeel()
//package com.java2s; //License from project: Apache License import javax.swing.UIManager; public class Main { /**//from ww w . j ava 2 s . co m * Sets the look and feel to the system's look and feel. **/ public static void setNativeLookAndFeel() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception ex) { } } }