Class SwingCommons


  • public class SwingCommons
    extends Object
    • Constructor Detail

      • SwingCommons

        public SwingCommons()
    • Method Detail

      • setStrictSize

        public static void setStrictSize​(Component component,
                                         int width,
                                         int height)
      • clearStrictSize

        public static void clearStrictSize​(Component component)
      • createUnderlinedLabel

        public static JLabel createUnderlinedLabel​(String name)
      • getDeveloperIcon

        public static BufferedImage getDeveloperIcon()
      • createPlaceholder

        public static void createPlaceholder​(String text,
                                             JTextComponent component)
      • createPlaceholder

        public static void createPlaceholder​(String text,
                                             JTextComponent component,
                                             boolean tooltip)
      • resizeImage

        public static BufferedImage resizeImage​(BufferedImage image,
                                                int newWidth,
                                                int newHeight,
                                                boolean maintainAspectRatio)