Package org.esa.snap.ui.loading
Class SwingUtils
- java.lang.Object
-
- org.esa.snap.ui.loading.SwingUtils
-
public class SwingUtils extends Object
Created by jcoravu on 10/1/2019.
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyBorder
EDIT_TEXT_BORDER
static LineBorder
LINE_BORDER
static Color
TRANSPARENT_COLOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JButton
buildBrowseButton(ActionListener actionListener, int textFieldPreferredHeight)
static JButton
buildButton(String resourceImagePath, ActionListener buttonListener, Dimension buttonSize, Integer scaledImagePadding)
static JComboBox<String>
buildComboBox(String[] values, String valueToSelect, int textFieldPreferredHeight, boolean isEditable)
static GridBagConstraints
buildConstraints(int columnIndex, int rowIndex, int fillType, int anchorType, int columnSpan, int rowSpan)
static GridBagConstraints
buildConstraints(int columnIndex, int rowIndex, int fillType, int anchorType, int columnSpan, int rowSpan, int topMargin, int leftMargin)
static GridBagConstraints
buildConstraints(int columnIndex, int rowIndex, int fillType, int anchorType, int columnSpan, int rowSpan, Insets aMargins)
static ImageIcon
loadImage(String resourceImagePath)
static ImageIcon
loadImage(String resourceImagePath, Dimension buttonSize, Integer scaledImagePadding)
-
-
-
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, Dimension buttonSize, Integer scaledImagePadding)
-
buildButton
public static JButton buildButton(String resourceImagePath, ActionListener buttonListener, Dimension buttonSize, Integer scaledImagePadding)
-
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)
-
-