JMenuItem settings = new JMenuItem("Settings");
settings.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
try {
new ConfigurationFrame(source.getConnectionSettings());
} catch(OperationCancelledException e) {}
}});
settingsMenuItems.put(source, settings);
for(int i = 0; i < menuBar.getMenuComponentCount(); i++) {