Here you can find the source of getJPanel(LayoutManager man)
public static JPanel getJPanel(LayoutManager man)
//package com.java2s; //License from project: Academic Free License import java.awt.Color; import java.awt.Component; import java.awt.LayoutManager; import javax.swing.JPanel; public class Main { public static Color BACKGROUND = new Color(35, 34, 32); public static JPanel getJPanel(LayoutManager man) { JPanel panel = new JPanel(man); panel.setBackground(BACKGROUND); return panel; }/*from w w w . j a v a 2s . c om*/ public static void setBackground(Component comp) { comp.setBackground(BACKGROUND); } }