Here you can find the source of createStandardJPanel()
public static JPanel createStandardJPanel()
//package com.java2s; //License from project: Apache License import java.awt.BorderLayout; import javax.swing.BorderFactory; import javax.swing.JPanel; public class Main { public static JPanel createStandardJPanel() { JPanel panel = new JPanel(); panel.setBorder(BorderFactory.createEmptyBorder()); panel.setLayout(new BorderLayout()); return panel; }//from w ww . ja v a2 s. c o m }