package hirondelle.stocks.main;
import hirondelle.stocks.util.Consts;
import hirondelle.stocks.util.Util;
import java.util.logging.Logger;
public final class NewLauncher {
public static void main (String... aArgs) {
logBasicSystemInfo();
showMainWindow();
fLogger.info("Launch thread now exiting...");
}
private static final Logger fLogger = Util.getLogger(NewLauncher.class);
private static void showMainWindow(){
fLogger.info("Showing the main window.");
StocksMonitorMainWindow mainWindow = new StocksMonitorMainWindow();
}
private static void logBasicSystemInfo() {
fLogger.info("Launching the application...");
fLogger.config(
"Operating System: " + System.getProperty("os.name") + " " +
System.getProperty("os.version")
);
fLogger.config("JRE: " + System.getProperty("java.version"));
fLogger.info("Java Launched From: " + System.getProperty("java.home"));
fLogger.config("Class Path: " + System.getProperty("java.class.path"));
fLogger.config("Library Path: " + System.getProperty("java.library.path"));
fLogger.config("Application Name: " + Consts.APP_NAME + "/" + Consts.APP_VERSION);
fLogger.config("User Home Directory: " + System.getProperty("user.home"));
fLogger.config("User Working Directory: " + System.getProperty("user.dir"));
fLogger.info("Test INFO logging.");
fLogger.fine("Test FINE logging.");
fLogger.finest("Test FINEST logging.");
}
}