Here you can find the source of initialize()
public static void initialize()
//package com.java2s; import java.awt.Color; import javax.swing.UIDefaults; import javax.swing.UIManager; public class Main { public static void initialize() { try {/*from w w w . j a v a2s .com*/ UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); //UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel"); UIDefaults ui = UIManager.getLookAndFeelDefaults(); ui.put("TextPane.background", new Color(240, 240, 250)); ui.put("Panel.background", new Color(240, 240, 250)); } catch (Exception e) { e.printStackTrace(); } } }