Class PreferenceUtils


  • public class PreferenceUtils
    extends Object
    Contains some static helper functions.
    • Constructor Detail

      • PreferenceUtils

        public PreferenceUtils()
    • Method Detail

      • addNote

        public static void addNote​(JPanel panel,
                                   String text)
        Adds a text note to the given JPanel.
        Parameters:
        panel - A panel to add the note to.
        text - The note text.
      • createColorComponents

        public static JComponent[] createColorComponents​(Property colorProperty)
        Creates color combobox components for a given property.
        Parameters:
        colorProperty - The property to create the components for.
        Returns:
        A new color combobox.
      • createTitleLabel

        public static JPanel createTitleLabel​(String title)
        Creates a JPanel containing a label with the given text and a horizontal line.
        Parameters:
        title - The label text.
        Returns:
        A JPanel with the title label.