Here you can find the source of setNativeLookAndFeel()
public static void setNativeLookAndFeel()
//package com.java2s; //License from project: Open Source License import javax.swing.UIManager; public class Main { public static void setNativeLookAndFeel() { UIManager.put("Slider.paintValue", false); try {/*from ww w . j av a 2 s.c o m*/ UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"); // UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); return; } catch (Exception e) { } try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } } }