Here you can find the source of createFlowJPanelLeft(JComponent parent, int alignment)
private static JPanel createFlowJPanelLeft(JComponent parent, int alignment)
//package com.java2s; //License from project: Open Source License import java.awt.*; import javax.swing.*; public class Main { /**/*from www . j av a 2s .c o m*/ * @return A {@link FlowLayout}ed JPanel. */ private static JPanel createFlowJPanelLeft(JComponent parent, int alignment) { JPanel panel = new JPanel(new FlowLayout(alignment, 0, 3)); parent.add(panel); return panel; } /** * @return A {@link FlowLayout}ed JPanel aligned to the left. */ public static JPanel createFlowJPanelLeft(JComponent parent) { return createFlowJPanelLeft(parent, FlowLayout.LEFT); } }