Java tutorial
//package com.java2s; //License from project: Open Source License import java.awt.LayoutManager; import javax.swing.JPanel; public class Main { private static JPanel createPanel() { return new JPanel(); } private static JPanel createPanel(LayoutManager layout) { return new JPanel(layout); } }