Java Utililty Methods Swing Empty Border

List of utility methods to do Swing Empty Border

Description

The list of methods to do Swing Empty Border are organized into topic(s).

Method

BordercreateEmptyBorder(int size)
create Empty Border
return BorderFactory.createEmptyBorder(size, size, size, size);
BordercreateInnerBorder(int size)
create Inner Border
return createInnerBorder(size, null);
BordergetAlignBorder()
get Align Border
return BorderFactory.createEmptyBorder(5, 0, 0, 0);
BordergetBigBorder()
get Big Border
return new EmptyBorder(10, 10, 10, 10);
BordergetDefaultEmptyBorder()
Gets the default empty border.
return DEFAULT_EMPTY_BORDER;
BordergetEmpty5Border()
Returns an empty border of width 5 on all sides.
return EMPTY_5_BORDER;
BordergetEmptyBorder()
get Empty Border
if (_emptyBorder == null) {
    _emptyBorder = new EmptyBorder(1, 1, 1, 1);
return _emptyBorder;
BordergetEmptyBorder(int width)
Returns an empty border.
return new EmptyBorder(width, width, width, width);
BordergetRaisedBorder(int innerPadding)
get Raised Border
Border b1 = BorderFactory.createEmptyBorder(innerPadding, innerPadding, innerPadding, innerPadding);
Border b2 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
return BorderFactory.createCompoundBorder(b2, b1);
javax.swing.border.BordermakeEmptyBorderResource(int top, int left, int bottom, int right)
make Empty Border Resource
return new javax.swing.plaf.BorderUIResource.EmptyBorderUIResource(top, left, bottom, right);