public static void main(String[] args) { System.setProperty("user.timezone", "UTC"); TimeZone.setDefault(TimeZone.getTimeZone("UTC")); /* Log uncaught Exceptions */ Thread.setDefaultUncaughtExceptionHandler( (thread, e) -> { Logger log = LoggerFactory.getLogger(thread.getClass()); log.error("Exception in thread [" + thread.getName() + "]", e); }); final Logger mainLog = getLog(); if (mainLog.isInfoEnabled()) { final Date date = new Date(); mainLog.info("This application was launched at " + date.toString()); } Application app = new Application(); app.setTitle("VARS Query"); app.setToolbarBackgroundImage("http://www.mbari.org/art/global/header/rotator.php"); app.setStopCallback(() -> System.exit(0)); app.addToolbarItem(new Action(AppIcons.PLAY, "Run Search")); app.setBaseColor(new Color(0x1B / 255D, 0x4D / 255D, 0x93 / 255D, 1)); app.addMenuEntry(new Action(AppIcons.SEARCH, "Basic Search", () -> showSimpleSearch(app))); app.addMenuEntry( new Action(AppIcons.SEARCH_PLUS, "Advanced Search", () -> showAdvancedSearch(app))); app.addMenuEntry( new Action(AppIcons.GEARS, "Customize Results", () -> showCustomizeResults(app))); showSimpleSearch(app); app.show(); }