public static JPanel createPanelWithHorizontalLayout ( ) { JPanel _panel = new JPanel ( ) ; _panel . setLayout ( new BoxLayout ( _panel , BoxLayout . X_AXIS ) ) ; return _panel ; }
Create a panel that lays out components horizontally .