Class SwingUtils


  • public class SwingUtils
    extends Object
    Created by jcoravu on 10/1/2019.
    • Field Detail

      • TRANSPARENT_COLOR

        public static final Color TRANSPARENT_COLOR
      • LINE_BORDER

        public static final LineBorder LINE_BORDER
      • EDIT_TEXT_BORDER

        public static final EmptyBorder EDIT_TEXT_BORDER
    • Method Detail

      • loadImage

        public static ImageIcon loadImage​(String resourceImagePath)
      • buildComboBox

        public static JComboBox<String> buildComboBox​(String[] values,
                                                      String valueToSelect,
                                                      int textFieldPreferredHeight,
                                                      boolean isEditable)
      • buildBrowseButton

        public static JButton buildBrowseButton​(ActionListener actionListener,
                                                int textFieldPreferredHeight)
      • buildConstraints

        public static GridBagConstraints buildConstraints​(int columnIndex,
                                                          int rowIndex,
                                                          int fillType,
                                                          int anchorType,
                                                          int columnSpan,
                                                          int rowSpan,
                                                          Insets aMargins)
      • buildConstraints

        public static GridBagConstraints buildConstraints​(int columnIndex,
                                                          int rowIndex,
                                                          int fillType,
                                                          int anchorType,
                                                          int columnSpan,
                                                          int rowSpan,
                                                          int topMargin,
                                                          int leftMargin)
      • buildConstraints

        public static GridBagConstraints buildConstraints​(int columnIndex,
                                                          int rowIndex,
                                                          int fillType,
                                                          int anchorType,
                                                          int columnSpan,
                                                          int rowSpan)