question: private void populateProfiles ( final ProfileList profiles ) { profilesComboBox . removeAllItems ( ) ; for ( Profile p : profiles ) { profilesComboBox . addItem ( p ) ; } final int count = profilesComboBox . getItemCount ( ) ; if ( count != 0 ) { profilesComboBox . setSelectedIndex ( count - 1 ) ; } }
target:  Populate the profiles combobox and select the default.