public class GuiUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
setDeepEnabled(Component component,
boolean enabled)
Enables or disables the given component and all its children
recursively
|
static CollapsiblePanel |
wrapCollapsible(String title,
JComponent component)
Wrap the given component into a
CollapsiblePanel with
the given title |
static JPanel |
wrapFlow(JComponent component)
Wrap the given component into a panel with flow layout
|
static JPanel |
wrapTitled(String title,
JComponent component)
Wrap the given component into a panel with a titled border with
the given title
|
public static CollapsiblePanel wrapCollapsible(String title, JComponent component)
CollapsiblePanel with
the given titletitle - The titlecomponent - The componentpublic static JPanel wrapTitled(String title, JComponent component)
title - The titlecomponent - The componentpublic static JPanel wrapFlow(JComponent component)
component - The componentpublic static void setDeepEnabled(Component component, boolean enabled)
component - The componentenabled - Whether the component tree should be enabledCopyright © 2022. All rights reserved.