List of utility methods to do Swing Etched Border
void | addEtchedBorder(JComponent c) add Etched Border addOuterBorder(c, BorderFactory.createEtchedBorder()); |
Border | getBorderEtched() get Border Etched return BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);
|
Border | getEtchedBottomBorder(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;
|