Package slash.navigation.gui.helpers
Class UIHelper
java.lang.Object
slash.navigation.gui.helpers.UIHelper
Helpers used throughout the UI
- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilechooseDirectory(Component parent, String title, String currentPath) static FilechooseFile(Component parent, String title, String currentPath) static JFileChooserstatic JLabelcreateLinkLabel(String text, Runnable onClick) A JLabel rendered as a clickable hyperlink that runs the given action when clicked.static intgetMaxWidth(String string, int extraWidth) static intstatic voidpatchUIManager(ResourceBundle bundle, String... keys) static Fontstatic voidstatic voidsetUiFontScalePercentage(int percentage) static voidstartWaitCursor(JComponent component) static voidstopWaitCursor(Component component) static voidstopWaitCursor(JComponent component)
-
Constructor Details
-
UIHelper
public UIHelper()
-
-
Method Details
-
getUiFontScalePercentage
public static int getUiFontScalePercentage() -
setUiFontScalePercentage
public static void setUiFontScalePercentage(int percentage) -
scaleFont
-
setLookAndFeel
public static void setLookAndFeel() -
startWaitCursor
-
stopWaitCursor
-
stopWaitCursor
-
createJFileChooser
-
createLinkLabel
A JLabel rendered as a clickable hyperlink that runs the given action when clicked. -
chooseDirectory
-
chooseFile
-
patchUIManager
-
getMaxWidth
-