Class Panels

java.lang.Object
com.googlecode.lanterna.gui2.Panels

public class Panels extends Object
Utility class for quickly bunching up components in a panel, arranged in a particular pattern
Author:
Martin
  • Method Details

    • horizontal

      public static Panel horizontal(Component... components)
      Creates a new Panel with a LinearLayout layout manager in horizontal mode and adds all the components passed in
      Parameters:
      components - Components to be added to the new Panel, in order
      Returns:
      The new Panel
    • vertical

      public static Panel vertical(Component... components)
      Creates a new Panel with a LinearLayout layout manager in vertical mode and adds all the components passed in
      Parameters:
      components - Components to be added to the new Panel, in order
      Returns:
      The new Panel
    • grid

      public static Panel grid(int columns, Component... components)
      Creates a new Panel with a GridLayout layout manager and adds all the components passed in
      Parameters:
      columns - Number of columns in the grid
      components - Components to be added to the new Panel, in order
      Returns:
      The new Panel