![JAR search and dependency download from the Maven repository](/logo.png)
net.vectorpublish.desktop.vp.StartupAsApplet 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.JApplet;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import net.vectorpublish.desktop.vp.api.ContextHolder;
public class StartupAsApplet extends JApplet {
@Override
public void start() {
super.start();
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (final UnsupportedLookAndFeelException e) {
System.out.println("Info: " + e.getMessage());
} catch (final ClassNotFoundException e) {
e.printStackTrace();
} catch (final InstantiationException e) {
e.printStackTrace();
} catch (final IllegalAccessException e) {
e.printStackTrace();
}
ContextHolder.context = new VectorPublishApplicationContext();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy