private void populateAttributeComboBox(){
  if (attributeComboBox != null) {
    setPopulatingComboBox(true);
    Object selectedItem=model.getSelectedItem();
    model.removeAllElements();
    model.addElement("");
    if (attributeNameList != null) {
      for (      String attribute : attributeNameList) {
        model.addElement(attribute);
      }
    }
    attributeComboBox.setModel(model);
    model.setSelectedItem(selectedItem);
    setPopulatingComboBox(false);
  }
}

private void populateAttributeComboBox ( ) { if ( attributeComboBox != null ) { setPopulatingComboBox ( true ) ; Object selectedItem = model . getSelectedItem ( ) ; model . removeAllElements ( ) ; model . addElement ( "" ) ; if ( attributeNameList != null ) { for ( String attribute : attributeNameList ) { model . addElement ( attribute ) ; } } attributeComboBox . setModel ( model ) ; model . setSelectedItem ( selectedItem ) ; setPopulatingComboBox ( false ) ; } }
populate attribute combo box .
