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);
  }
}

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 ) ; } }
populate the profiles combobox and select the default .
