Class FormUtils


  • public class FormUtils
    extends Object
    Author:
    wolf
    • Method Detail

      • getDefaultInsets

        public static Insets getDefaultInsets()
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       JComponent component)
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       JComponent component,
                                       boolean fillRow,
                                       boolean insets)
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       JComponent component,
                                       boolean fillRow,
                                       boolean lastComponentInRow,
                                       boolean insets)
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       JLabel label,
                                       JComponent component)
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       String label,
                                       JComponent component)
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       JLabel label,
                                       JComponent component,
                                       boolean lastRowComponent)
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       String label,
                                       JComponent component,
                                       boolean lastRowComponent)
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       JComponent label,
                                       JComponent component,
                                       boolean lastRowComponent)
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       JComponent label,
                                       JComponent component,
                                       double weigthy,
                                       boolean insets)
      • addRowInGBL

        public static void addRowInGBL​(JComponent parent,
                                       int row,
                                       int startCol,
                                       Icon icon,
                                       JComponent component)
      • addSpacerInGBL

        public static void addSpacerInGBL​(JComponent parent,
                                          int row,
                                          int startCol,
                                          int height,
                                          Color color)
        Add a vertical space with defined height
        Parameters:
        parent - the parent Component
        row - row at which we want to add a space
        startCol - first column at which we want to add a space
        height - height of the space
        color - color of the background in the space
      • addFiller

        public static void addFiller​(JComponent parent,
                                     int row,
                                     int col,
                                     JComponent component,
                                     double weight,
                                     boolean insets)
      • addFiller

        public static void addFiller​(JComponent parent,
                                     int row,
                                     int col,
                                     JComponent component)
      • addFiller

        public static void addFiller​(JComponent parent,
                                     int row,
                                     int col,
                                     JComponent component,
                                     boolean insets)
      • addFiller

        public static void addFiller​(JComponent parent,
                                     int row,
                                     int col)
      • addSingleRowWestComponent

        public static void addSingleRowWestComponent​(JComponent parent,
                                                     int row,
                                                     JComponent component)
      • getButtonDimension

        public static Dimension getButtonDimension()
      • forceButtonDimension

        public static void forceButtonDimension​(JButton button)
      • getColorButtonDimension

        public static Dimension getColorButtonDimension()
      • getSpinnerDimension

        public static Dimension getSpinnerDimension()
      • getComboDimension

        public static Dimension getComboDimension()
      • show

        public static void show​(JComponent component)
      • show

        public static void show​(JFrame frame)
      • getWindowForComponent

        public static Window getWindowForComponent​(Component parentComponent)
      • getTitleLabel

        public static JLabel getTitleLabel​(String title)
      • getExpandableTitleLabel

        public static JComponent getExpandableTitleLabel​(String title,
                                                         JComponent[] managedComponents,
                                                         boolean collapsed)
      • repackParentWindow

        public static void repackParentWindow​(Component component)