Here you can find the source of SetNetBeansCompatibleUIManager()
public static boolean SetNetBeansCompatibleUIManager()
//package com.java2s; import javax.swing.UIManager; public class Main { /**/*from ww w . java2 s . c o m*/ * Set the application look-and-feel to match NetBeans. * @return true if look-and-feel is set, false otherwise */ public static boolean SetNetBeansCompatibleUIManager() { // set the LookAndFeel to match the IDE // reference: Robinson & Vorobiev p. 728 UIManager.LookAndFeelInfo[] info = UIManager.getInstalledLookAndFeels(); // default installed LookAndFeels // updated for Java 1.6.0_11 2009-01-08 // 0: javax.swing.plaf.metal.MetalLookAndFeel (default) // 1: com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel // 2: com.sun.java.swing.plaf.motif.MotifLookAndFeel // 3: com.sun.java.swing.plaf.windows.WindowsLookAndFeel // 4: com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel int lafno = 3; // desired LookAndFeel for Windows XP to match NetBeans try { UIManager.setLookAndFeel(info[lafno].getClassName()); } catch (Exception e) { System.err.println("Couldn't load " + info[lafno].getClassName() + " look and feel " + e); return false; } return true; } }