Class Borders

java.lang.Object
com.jgoodies.forms.factories.Borders

public final class Borders extends Object
Provides constants and factory methods for Borders that use instances of ConstantSize to define the margins.

Examples:

 Borders.DLU2_BORDER
 Borders.createEmptyBorder(Sizes.DLUY4, Sizes.DLUX2, Sizes.DLUY4, Sizes.DLUX2);
 Borders.createEmptyBorder("4dlu, 2dlu, 4dlu, 2dlu");
 
Version:
$Revision: 1.11 $
Author:
Karsten Lentzsch
See Also:
  • Field Details

    • EMPTY_BORDER

      public static final Border EMPTY_BORDER
      A prepared and reusable EmptyBorder without gaps.
    • DLU2_BORDER

      public static final Border DLU2_BORDER
      A prepared and reusable Border with 2dlu on all sides.
    • DLU4_BORDER

      public static final Border DLU4_BORDER
      A prepared and reusable Border with 4dlu on all sides.
    • DLU7_BORDER

      public static final Border DLU7_BORDER
      A prepared and reusable Border with 7dlu on all sides.
    • DLU14_BORDER

      public static final Border DLU14_BORDER
      A prepared Border with 14dlu on all sides.
    • DLU21_BORDER

      public static final Border DLU21_BORDER
      A prepared Border with 21dlu on all sides.
      Since:
      1.2
    • BUTTON_BAR_GAP_BORDER

      public static final Border BUTTON_BAR_GAP_BORDER
      A standardized Border that describes the gap between a component and a button bar in its bottom.
    • DIALOG_BORDER

      public static final Border DIALOG_BORDER
      A standardized Border that describes the border around a dialog content that has no tabs.
      See Also:
    • TABBED_DIALOG_BORDER

      public static final Border TABBED_DIALOG_BORDER
      A standardized Border that describes the border around a dialog content that uses tabs.
      See Also:
  • Method Details