public class GUIUtil
extends java.lang.Object
Constructor and Description |
---|
GUIUtil() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.JButton |
button(java.lang.String text,
Executor onClick) |
static javax.swing.JCheckBox |
checkBox(boolean selected,
java.util.function.Consumer<java.lang.Boolean> onSelect) |
static javax.swing.JCheckBox |
checkBox(java.lang.String text,
boolean selected,
java.util.function.Consumer<java.lang.Boolean> onSelect) |
static javax.swing.JFrame |
getFrame(javax.swing.JComponent component) |
static void |
makeFrameVisible(javax.swing.JFrame frame) |
static void |
makeFrameVisibleAround(javax.swing.JFrame frame,
double x,
double y) |
static void |
makeFrameVisibleAtMouse(javax.swing.JFrame frame) |
static javax.swing.JPanel |
panelWithBoxLayout() |
static javax.swing.JPanel |
panelWithBoxLayout(int axis) |
static <T extends javax.swing.JPanel> |
panelWithBoxLayout(java.util.function.Supplier<T> supplier,
int axis) |
static <T extends javax.swing.text.JTextComponent> |
uneditableTextComponent(java.lang.String text,
java.util.function.Supplier<T> supplier) |
static javax.swing.JTextField |
uneditableTextField(java.lang.String text) |
static <T extends javax.swing.JPanel> |
withBoxLayout(T panel) |
static <T extends javax.swing.JPanel> |
withBoxLayout(T panel,
int axis) |
static javax.swing.JFrame |
wrapComponentInFrame(javax.swing.JComponent component) |
public static javax.swing.JTextField uneditableTextField(java.lang.String text)
public static <T extends javax.swing.text.JTextComponent> T uneditableTextComponent(java.lang.String text, java.util.function.Supplier<T> supplier)
public static javax.swing.JPanel panelWithBoxLayout()
public static javax.swing.JPanel panelWithBoxLayout(int axis)
public static <T extends javax.swing.JPanel> T withBoxLayout(T panel)
public static <T extends javax.swing.JPanel> T withBoxLayout(T panel, int axis)
public static <T extends javax.swing.JPanel> T panelWithBoxLayout(java.util.function.Supplier<T> supplier, int axis)
public static javax.swing.JCheckBox checkBox(boolean selected, java.util.function.Consumer<java.lang.Boolean> onSelect)
public static javax.swing.JCheckBox checkBox(java.lang.String text, boolean selected, java.util.function.Consumer<java.lang.Boolean> onSelect)
public static javax.swing.JButton button(java.lang.String text, Executor onClick)
public static javax.swing.JFrame wrapComponentInFrame(javax.swing.JComponent component)
public static void makeFrameVisible(javax.swing.JFrame frame)
public static void makeFrameVisibleAtMouse(javax.swing.JFrame frame)
public static void makeFrameVisibleAround(javax.swing.JFrame frame, double x, double y)
public static javax.swing.JFrame getFrame(javax.swing.JComponent component)