package com.quiltplayer;
import javax.swing.UIManager;
import org.apache.log4j.Logger;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.quiltplayer.view.swing.theme.QUiProperties;
/**
* Main class.
*
* @author Vlado Palczynski
*/
public class QuiltPlayer {
/**
* Starts the show.
*
* @param args
* the arguments.
* @throws Exception
* the exceptions.
*/
public static final void main(final String[] args) throws Exception {
/*
* Initialize OpenGl if supported.
*/
// System.setProperty("sun.java2d.opengl", "True");
/*
* Initialize look and feel.
*/
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
QUiProperties.setProperties();
/*
* Initialize log4j
*/
final Logger log = Logger.getLogger(QuiltPlayer.class);
log.debug("Log4j has been initialized.");
/*
* Initialize application through Spring Framework.
*/
new ClassPathXmlApplicationContext("app-context.xml");
}
}