Beispiel #1
0
 private void startServer() {
   if (_server != null) {
     _trayIcon.displayMessage("WARN", "Server is already started", TrayIcon.WARNING_MESSAGE_TYPE);
     return;
   }
   final Server server = new Server();
   server.start();
   this._server = server;
   _trayIcon.setIcon(_icons[DUKE_UP]);
 }
Beispiel #2
0
 private void shutdownServer() {
   if (_server == null) {
     return;
   }
   _server.shutdown(false);
   this._server = null;
   _trayIcon.setIcon(_icons[NORMAL_DUKE]);
 }