public class Panels extends Object
Modifier and Type | Method | Description |
---|---|---|
static Panel |
grid(int columns,
Component... components) |
Creates a new
Panel with a GridLayout layout manager and adds all the components passed in |
static Panel |
horizontal(Component... components) |
Creates a new
Panel with a LinearLayout layout manager in horizontal mode and adds all the
components passed in |
static Panel |
vertical(Component... components) |
Creates a new
Panel with a LinearLayout layout manager in vertical mode and adds all the
components passed in |
public static Panel horizontal(Component... components)
Panel
with a LinearLayout
layout manager in horizontal mode and adds all the
components passed incomponents
- Components to be added to the new Panel
, in orderPanel
public static Panel vertical(Component... components)
Panel
with a LinearLayout
layout manager in vertical mode and adds all the
components passed incomponents
- Components to be added to the new Panel
, in orderPanel
Copyright © 2020. All rights reserved.