Java Utililty Methods Swing Border

List of utility methods to do Swing Border

Description

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

Method

voidshowBorder(JComponent c, Color color)
show Border
c.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(color), c.getBorder()));
voidsuppressBorders(JComponent comp)
Nullify the border of this JComponent, as well as its subcomponents.
if (!(comp instanceof JButton) && !(comp instanceof JToggleButton)) {
    comp.setBorder(null);
suppressBorders((Container) comp);