- java.lang.Object
-
- com.googlecode.lanterna.gui2.Panels
-
public class Panels extends java.lang.ObjectUtility class for quickly bunching up components in a panel, arranged in a particular pattern
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePanels()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Panelgrid(int columns, Component... components)Creates a newPanelwith aGridLayoutlayout manager and adds all the components passed instatic Panelhorizontal(Component... components)Creates a newPanelwith aLinearLayoutlayout manager in horizontal mode and adds all the components passed instatic Panelvertical(Component... components)Creates a newPanelwith aLinearLayoutlayout manager in vertical mode and adds all the components passed in
-
-
-
Method Detail
-
horizontal
public static Panel horizontal(Component... components)
Creates a newPanelwith aLinearLayoutlayout manager in horizontal mode and adds all the components passed in- Parameters:
components- Components to be added to the newPanel, in order- Returns:
- The new
Panel
-
vertical
public static Panel vertical(Component... components)
Creates a newPanelwith aLinearLayoutlayout manager in vertical mode and adds all the components passed in- Parameters:
components- Components to be added to the newPanel, in order- Returns:
- The new
Panel
-
-