private void updateBorder() {
      if (isFocused() && isEnabled()) {
        setBorder(BorderFactory
            .createLineBorder(banned ? restrictedColor : focusColor));

      } else
        setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
    }
private void updateBorder()