Package gg.xp.xivsupport.gui.util
Class GuiUtil
java.lang.Object
gg.xp.xivsupport.gui.util.GuiUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
bringToFront
(Component component) static void
copyTextToClipboard
(String text) static GridBagConstraints
static void
displayWaitCursorWhile
(Component comp, Runnable action) static <X> X
doImportDialog
(String title, Function<String, X> converter) static void
invokeLaterSequentially
(Runnable... runnables) static JLabel
static void
static void
static void
simpleTopDownLayout
(Container outer, int width, Component... components) Format a container, adding the given components, in a manner such that the components are centered in the container, as far up in the container as they can go, and left-justified.static void
simpleTopDownLayout
(Container outer, Component... components) Format a container, adding the given components, in a manner such that the components are centered in the container, as far up in the container as they can go, and left-justified.static <X> void
tableDoubleClickAction
(JTable table, CustomTableModel<X> model, Consumer<X> action)
-
Method Details
-
copyTextToClipboard
-
openFile
-
openUrl
-
defaultGbc
-
labelFor
-
bringToFront
-
simpleTopDownLayout
Format a container, adding the given components, in a manner such that the components are centered in the container, as far up in the container as they can go, and left-justified.- Parameters:
outer
- The container to formatcomponents
- The components to add
-
simpleTopDownLayout
Format a container, adding the given components, in a manner such that the components are centered in the container, as far up in the container as they can go, and left-justified.- Parameters:
outer
- The container to formatwidth
- The max width of the inner containercomponents
- The components to add
-
doImportDialog
-
displayWaitCursorWhile
-
invokeLaterSequentially
-
tableDoubleClickAction
public static <X> void tableDoubleClickAction(JTable table, CustomTableModel<X> model, Consumer<X> action)
-