Class GuiUtil

java.lang.Object
gg.xp.xivsupport.gui.util.GuiUtil

public final class GuiUtil extends Object
  • Method Details

    • copyTextToClipboard

      public static void copyTextToClipboard(String text)
    • openFile

      public static void openFile(File file)
    • openUrl

      public static void openUrl(String url)
    • defaultGbc

      public static GridBagConstraints defaultGbc()
    • labelFor

      public static JLabel labelFor(String text, Component component)
    • bringToFront

      public static void bringToFront(Component component)
    • simpleTopDownLayout

      public 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.
      Parameters:
      outer - The container to format
      components - The components to add
    • simpleTopDownLayout

      public 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.
      Parameters:
      outer - The container to format
      width - The max width of the inner container
      components - The components to add
    • doImportDialog

      @Nullable public static <X> X doImportDialog(String title, Function<String,X> converter)
    • displayWaitCursorWhile

      public static void displayWaitCursorWhile(Component comp, Runnable action)
    • invokeLaterSequentially

      public static void invokeLaterSequentially(Runnable... runnables)
    • tableDoubleClickAction

      public static <X> void tableDoubleClickAction(JTable table, CustomTableModel<X> model, Consumer<X> action)