Class UIHelper

java.lang.Object
slash.navigation.gui.helpers.UIHelper

public class UIHelper extends Object
Helpers used throughout the UI
Author:
Christian Pesch
  • Constructor Details

    • UIHelper

      public UIHelper()
  • Method Details

    • getUiFontScalePercentage

      public static int getUiFontScalePercentage()
    • setUiFontScalePercentage

      public static void setUiFontScalePercentage(int percentage)
    • scaleFont

      public static Font scaleFont(Font font, int percentage)
    • setLookAndFeel

      public static void setLookAndFeel()
    • startWaitCursor

      public static void startWaitCursor(JComponent component)
    • stopWaitCursor

      public static void stopWaitCursor(JComponent component)
    • stopWaitCursor

      public static void stopWaitCursor(Component component)
    • createJFileChooser

      public static JFileChooser createJFileChooser()
    • createLinkLabel

      public static JLabel createLinkLabel(String text, Runnable onClick)
      A JLabel rendered as a clickable hyperlink that runs the given action when clicked.
    • chooseDirectory

      public static File chooseDirectory(Component parent, String title, String currentPath)
    • chooseFile

      public static File chooseFile(Component parent, String title, String currentPath)
    • patchUIManager

      public static void patchUIManager(ResourceBundle bundle, String... keys)
    • getMaxWidth

      public static int getMaxWidth(String string, int extraWidth)