java.lang.Object
com.googlecode.lanterna.gui2.Panels
Utility class for quickly bunching up components in a panel, arranged in a particular pattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PanelCreates 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 PanelCreates a newPanelwith aLinearLayoutlayout manager in vertical mode and adds all the components passed in
-
Constructor Details
-
Panels
private Panels()
-
-
Method Details
-
horizontal
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
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
-
grid
Creates a newPanelwith aGridLayoutlayout manager and adds all the components passed in- Parameters:
columns- Number of columns in the gridcomponents- Components to be added to the newPanel, in order- Returns:
- The new
Panel
-