question: 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 ) ; } }
target:  Populate attribute combo box.