Tray tray = new Tray(appIcon, appName, menuItems);
showUrl(new URL(applicationUrl));
if (hadToLoad) {
// wait a bit and show a message from the tray.
Thread.sleep(2000);
EventBus.publish(new TrayMessage(appName, "Load Complete! This icon helps you control the application.", MessageType.INFO));
}
}
} catch (Exception ex) {
Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex);
}