Here you can find the source of createJPanel()
public static JPanel createJPanel()
//package com.java2s; //License from project: Open Source License import javax.swing.JPanel; public class Main { public static JPanel createJPanel() { JPanel panel = new JPanel(); panel.setOpaque(false);/*from w w w . j av a 2s . c o m*/ return panel; } }