Here you can find the source of nativeLook()
public static boolean nativeLook()
//package com.java2s; //License from project: Open Source License import javax.swing.UIManager; public class Main { public static boolean nativeLook() { try {//from w w w . j a va2 s . c om UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); return true; } catch (Exception ex) { return false; } } }