Class FlatBorder

  • All Implemented Interfaces:
    Serializable, Border, UIResource
    Direct Known Subclasses:
    FlatButtonBorder, FlatRoundBorder, FlatTextBorder

    public class FlatBorder
    extends BasicBorders.MarginBorder
    Border for various components (e.g. JTextField). There is empty space around the component border, if Component.focusWidth is greater than zero, which is used to paint outer focus border. Because there is empty space (if outer focus border is not painted), UI delegates that use this border (or subclasses) must invoke FlatUIUtils.paintParentBackground(java.awt.Graphics, javax.swing.JComponent) to paint the empty space correctly.
    See Also:
    Serialized Form
    UiDefault:
    Component.focusWidth int, Component.innerFocusWidth int or float, Component.focusColor Color, Component.borderColor Color, Component.disabledBorderColor Color, Component.focusedBorderColor Color, Component.error.borderColor Color, Component.error.focusedBorderColor Color, Component.warning.borderColor Color, Component.warning.focusedBorderColor Color, Component.custom.borderColor Color
    • Field Detail

      • focusWidth

        protected final int focusWidth
      • innerFocusWidth

        protected final float innerFocusWidth
      • innerOutlineWidth

        protected final float innerOutlineWidth
      • focusColor

        protected final Color focusColor
      • borderColor

        protected final Color borderColor
      • disabledBorderColor

        protected final Color disabledBorderColor
      • focusedBorderColor

        protected final Color focusedBorderColor
      • errorBorderColor

        protected final Color errorBorderColor
      • errorFocusedBorderColor

        protected final Color errorFocusedBorderColor
      • warningBorderColor

        protected final Color warningBorderColor
      • warningFocusedBorderColor

        protected final Color warningFocusedBorderColor
      • customBorderColor

        protected final Color customBorderColor
    • Constructor Detail

      • FlatBorder

        public FlatBorder()