All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.vectorpublish.desktop.vp.Startup Maven / Gradle / Ivy

There is a newer version: 0.9.27
Show newest version
/*
 * Copyright (c) 2016, Peter Rader. All rights reserved.
 *  ___ ___               __                 ______         __     __  __         __
 * |   |   |.-----..----.|  |_ .-----..----.|   __ \.--.--.|  |--.|  ||__|.-----.|  |--.
 * |   |   ||  -__||  __||   _||  _  ||   _||    __/|  |  ||  _  ||  ||  ||__ --||     |
 *  \_____/ |_____||____||____||_____||__|  |___|   |_____||_____||__||__||_____||__|__|
 *
 * http://www.gnu.org/licenses/gpl-3.0.html
 */
package net.vectorpublish.desktop.vp;

import javax.swing.ToolTipManager;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import net.vectorpublish.desktop.vp.api.ContextHolder;

public class Startup extends ContextHolder {
	static {
		System.setProperty("java.util.logging.SimpleFormatter.format", "%5$s%6$s%n");
	}

	public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
		try {
			try {
				UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
			} catch (final UnsupportedLookAndFeelException e) {
			}
			ToolTipManager.sharedInstance().setInitialDelay(0);
			context = new VectorPublishApplicationContext();
		} catch (final Exception e) {
			e.printStackTrace();
			System.exit(0);
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy