protected void replaceBorderIfNecessary(){
  Border original=textField.getBorder();
  if (!(original instanceof BuddyLayoutAndBorder)) {
    borderDelegate=original;
    textField.setBorder(this);
  }
}

protected void replaceBorderIfNecessary ( ) { Border original = textField . getBorder ( ) ; if ( ! ( original instanceof BuddyLayoutAndBorder ) ) { borderDelegate = original ; textField . setBorder ( this ) ; } }
wraps and replaces the text fields default border with this object , to honor the button margins and sizes of the search , clear and popup buttons and the layout style .
