Java Swing Empty Border getEmpty5Border()

Here you can find the source of getEmpty5Border()

Description

Returns an empty border of width 5 on all sides.

License

BSD License

Return

The border.

Declaration

public static Border getEmpty5Border() 

Method Source Code

//package com.java2s;
/*/*from www.j  ava2 s .  c om*/
 * 09/08/2005
 *
 * UIUtil.java - Utility methods for org.fife.rsta.ui classes.
 * This library is distributed under a modified BSD license.  See the included
 * RSTAUI.License.txt file for details.
 */

import javax.swing.BorderFactory;

import javax.swing.border.Border;

public class Main {
    /**
     * A very common border that can be shared across many components.
     */
    private static final Border EMPTY_5_BORDER = BorderFactory.createEmptyBorder(5, 5, 5, 5);

    /**
     * Returns an empty border of width 5 on all sides.  Since this is a
     * very common border in GUI's, the border returned is a singleton.
     *
     * @return The border.
     */
    public static Border getEmpty5Border() {
        return EMPTY_5_BORDER;
    }
}

Related

  1. createEmptyBorder(int size)
  2. createInnerBorder(int size)
  3. getAlignBorder()
  4. getBigBorder()
  5. getDefaultEmptyBorder()
  6. getEmptyBorder()
  7. getEmptyBorder(int width)
  8. getRaisedBorder(int innerPadding)
  9. makeEmptyBorderResource(int top, int left, int bottom, int right)