}
// Start the GUI
SwingUtilities.invokeLater(new Runnable() {
public void run() {
final JanewayFrame gui = JanewayFrame.initialize(modules);
final LoginFrame loginGui = new LoginFrame("Janeway");
if (args.length > 0 && args[0].equals("-nologin")) {
loginGui.setVisible(false);
gui.setVisible(true);
}
else {
loginGui.setVisible(true);
gui.setVisible(false);
loginGui.getConnectButton().addActionListener(new LoginController(gui, loginGui));
}
}
});
}