public void detach() {
    if (myField instanceof ComponentWithBrowseButton) {
      ((ComponentWithBrowseButton<?>)myField).removeActionListener(this);
      myField = null;
    }
  }
public void detach()