void (JComponent component, Border border) { if (component != null && border != null) { Border old = component.getBorder(); if (old != null) { border = BorderFactory.createCompoundBorder(border, old); } component.setBorder(border); } }