use of net.sourceforge.processdash.ui.DashboardSplashScreen in project processdash by dtuma.
the class ProcessDashboard method mainImpl.
private static void mainImpl(String[] args) {
DashboardSecurity.setupSecurityManager();
LargeFontsHelper.maybeInitialize();
ss = new DashboardSplashScreen();
// show for at least 3 seconds.
ss.displayFor(3000);
if (Boolean.getBoolean("readOnly"))
InternalSettings.setReadOnly(true);
String title = null;
String location = null;
for (int i = 0; i < args.length; i++) {
if ("readOnly".equalsIgnoreCase(args[i]))
InternalSettings.setReadOnly(true);
else if ("readOnlyFollow".equalsIgnoreCase(args[i]))
InternalSettings.setReadOnlyFollowMode();
else if (args[i].startsWith(LOCATION_ARG_PREFIX))
location = args[i].substring(LOCATION_ARG_PREFIX.length());
else
title = args[i];
}
CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));
HttpAuthenticator.maybeInitialize(title);
MacGUIUtils.tweakLookAndFeel();
ProcessDashboard dash = new ProcessDashboard(location, title);
HttpAuthenticator.setParentComponent(dash);
DashboardIconFactory.setWindowIcon(dash);
dash.setVisible(true);
dash.initializeWindowSize();
dropSplashScreen();
dash.maybeNotifyOpened();
dash.aum.maybePerformCheck(dash);
DataImporter.refreshCachedFiles();
}
Aggregations