Class FlatBorder

All Implemented Interfaces:
FlatStylingSupport.StyleableBorder, Serializable, Border, UIResource
Direct Known Subclasses:
FlatButtonBorder, FlatRoundBorder, FlatScrollPaneBorder, FlatTextBorder

public class FlatBorder extends BasicBorders.MarginBorder implements FlatStylingSupport.StyleableBorder
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 fill the empty space correctly.

See Also:
  • Field Details

    • focusWidth

      protected int focusWidth
    • innerFocusWidth

      protected float innerFocusWidth
    • innerOutlineWidth

      protected float innerOutlineWidth
    • borderWidth

      protected float borderWidth
      Since:
      2
    • focusColor

      protected Color focusColor
    • borderColor

      protected Color borderColor
    • disabledBorderColor

      protected Color disabledBorderColor
    • focusedBorderColor

      protected Color focusedBorderColor
    • errorBorderColor

      protected Color errorBorderColor
    • errorFocusedBorderColor

      protected Color errorFocusedBorderColor
    • warningBorderColor

      protected Color warningBorderColor
    • warningFocusedBorderColor

      protected Color warningFocusedBorderColor
    • customBorderColor

      protected Color customBorderColor
    • outline

      protected String outline
      Since:
      2
    • outlineColor

      protected Color outlineColor
      Since:
      2
    • outlineFocusedColor

      protected Color outlineFocusedColor
      Since:
      2
  • Constructor Details

    • FlatBorder

      public FlatBorder()
  • Method Details