Java tutorial
//package com.java2s; import javax.swing.UIManager; import javax.swing.UIManager.LookAndFeelInfo; public class Main { public static void setNimbusLookAndFeel() { try { for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (Exception e) { } } }