e.printStackTrace();
}
MainWindow mainWindow = new MainWindow(settings.mainWindowBounds, settings.loginAtClientStart,
settings.connectionName.size());
SatedaHandler satedaHandler = new SatedaHandler(settings, mainWindow, record);
mainWindow.setEventHandler(satedaHandler);
int index = -1;
for(ChatProvider type : settings.connectionType){
index++;
Connection connection = null;
if(type.equals(ChatProvider.ICQ)){
connection = new ICQSimulation(settings.loginName.get(index),
settings.loginPassword.get(index), satedaHandler, ChatProvider.ICQ);
}else if(type.equals(ChatProvider.MSN)){
connection = new MSNSimulation(settings.loginName.get(index),
settings.loginPassword.get(index), satedaHandler, ChatProvider.MSN);
}
satedaHandler.addConnection(connection);
}
satedaHandler.startClient();
}