net.vectorpublish.desktop.vp.Startup Maven / Gradle / Ivy
/*
* 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);
}
}
}