Class BorderHelper

    • Constructor Detail

      • BorderHelper

        public BorderHelper()
    • Method Detail

      • addEmptyBorder

        public static void addEmptyBorder(JComponent c,
                                          int s)
        Add an empty border to the specified component by creating a CompoundBorder from the old border of the component and a new empty border.
        Parameters:
        c - the component to add a border to
        s - the size for all four directions
      • addEmptyBorder

        public static void addEmptyBorder(JComponent c,
                                          int top,
                                          int left,
                                          int bottom,
                                          int right)
        Add an empty border to the specified component by creating a CompoundBorder from the old border of the component and a new empty border.
        Parameters:
        c - the component to add a border to
        top - the top size
        left - the left size
        bottom - the bottom size
        right - the right size