Package gg.xp.xivsupport.gui.util
Class GuiUtil
java.lang.Object
gg.xp.xivsupport.gui.util.GuiUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbringToFront(Component component) static voidcopyTextToClipboard(String text) static GridBagConstraintsstatic voiddisplayWaitCursorWhile(Component comp, Runnable action) static <X> XdoImportDialog(String title, Function<String, X> converter) static @Nullable Stringstatic voidinvokeLaterSequentially(Runnable... runnables) static JLabelstatic voidstatic voidstatic voidsimpleTopDownLayout(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 voidsimpleTopDownLayout(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> voidtableDoubleClickAction(JTable table, CustomTableModel<X> model, Consumer<X> action)
-
Method Details
-
copyTextToClipboard
-
getTextFromClipboard
-
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)
-