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