private void removeOptionFields(Box box,GraphicPanelFieldManager fieldConfigManager){
  if (optionPanel != null) {
    box.remove(optionPanel);
    for (    FieldConfigBase field : optionFieldList) {
      fieldConfigManager.removeField(field);
    }
    optionFieldList.clear();
    optionPanel=null;
    box.revalidate();
  }
}

private void removeOptionFields ( Box box , GraphicPanelFieldManager fieldConfigManager ) { if ( optionPanel != null ) { box . remove ( optionPanel ) ; for ( FieldConfigBase field : optionFieldList ) { fieldConfigManager . removeField ( field ) ; } optionFieldList . clear ( ) ; optionPanel = null ; box . revalidate ( ) ; } }
removes the option fields from the previous selection .
