List of utility methods to do Swing Border
void | showBorder(JComponent c, Color color) show Border c.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(color), c.getBorder())); |
void | suppressBorders(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); |