/** * Convenience method to set the combobox index to a "safe" value, based on * the given user settings. * * @param aComboBox * the combobox to set the selected index for; * @param aSettings * the user settings to take the selected index from; * @param aSettingName * the name of the user setting to use. */ protected final void setComboBoxIndex( final JComboBox aComboBox, final UserSettings aSettings, final String aSettingName ) { ToolUtils.setComboBoxIndex( aComboBox, aSettings.getInt( aSettingName, -1 ) ); }