* @param evt
*/
private void browseDatabaseSettingsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseDatabaseSettingsActionPerformed
File startLocation = new File(peptideShakerGUI.getLastSelectedFolder());
UtilitiesUserPreferences utilitiesUserPreferences = UtilitiesUserPreferences.loadUserPreferences();
if (utilitiesUserPreferences.getDbFolder() != null && utilitiesUserPreferences.getDbFolder().exists()) {
startLocation = utilitiesUserPreferences.getDbFolder();
}
// First check whether a file has already been selected.
// If so, start from that file's parent.
if (databaseSettingsTxt.getText() != null && new File(databaseSettingsTxt.getText()).exists()) {