Improvement: add graphical ui

This commit is contained in:
Laurent Clouet
2015-01-15 23:20:17 +01:00
parent 2df4657202
commit df7c97b6a4
13 changed files with 481 additions and 0 deletions

View File

@@ -273,14 +273,20 @@ public class Worker {
}
gui = new GuiTextOneLine();
}
else if (ui_type.equals("swing")) {
gui = new GuiSwing();
}
else {
gui = new GuiText();
}
Client cli = new Client(gui, config, server);
gui.setClient(cli);
ShutdownHook hook = new ShutdownHook(cli);
hook.attachShutDownHook();
gui.start();
cli.run();
cli.stop();
}