_addDriverButton = WidgetFactory.createButton("Add database driver", "images/filetypes/archive.png");
_addDriverButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
UserDatabaseDriver userDatabaseDriver = new UserDatabaseDriver(getDriverFiles(), getDriverClassName());
_userPreferences.getDatabaseDrivers().add(userDatabaseDriver);
try {
userDatabaseDriver.loadDriver();
_databaseDriversPanel.updateDriverList();
dispose();
} catch (IllegalStateException e) {
WidgetUtils.showErrorMessage("Error while loading driver", "Error message: " + e.getMessage(), e);
}