Java Utililty Methods Swing Etched Border

List of utility methods to do Swing Etched Border

Description

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

Method

voidaddEtchedBorder(JComponent c)
add Etched Border
addOuterBorder(c, BorderFactory.createEtchedBorder());
BordergetBorderEtched()
get Border Etched
return BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);
BordergetEtchedBottomBorder(int innerInset, int outerInset)
Returns a border suited for Menus.
Border b0 = BorderFactory.createEmptyBorder(0, 0, innerInset, 0);
Border b1 = BorderFactory.createMatteBorder(0, 0, 1, 0, Color.GRAY);
Border b2 = BorderFactory.createMatteBorder(0, 0, 1, 0, Color.WHITE);
Border b3 = BorderFactory.createEmptyBorder(0, 0, outerInset, 0);
Border b = BorderFactory.createCompoundBorder(
        BorderFactory.createCompoundBorder(BorderFactory.createCompoundBorder(b3, b2), b1), b0);
return b;