public void resetChanges() {
ConnectionListModel listModel = (ConnectionListModel) connectionsList.getModel();
for (int i=0; i< listModel.getSize(); i++) {
ConnectionSettings connectionSettings = (ConnectionSettings) listModel.getElementAt(i);
connectionSettings.reset();
}
}
public void selectConnection(ConnectionHandler connectionHandler) {
connectionsList.setSelectedValue(connectionHandler.getSettings(), true);