void (boolean enabled) { super.setEnabled(enabled); Color c = enabled ? JBColor.GRAY : JBColor.LIGHT_GRAY; setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1, 0, 0, 0, c), BorderFactory.createEmptyBorder(10, 0, 0, 0))); }