Java tutorial
//package com.java2s; import javax.swing.BoxLayout; import javax.swing.JPanel; public class Main { public static JPanel createPageBoxLaidOutPanel() { final JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.PAGE_AXIS)); return p; } }