Package com.nanolaba.surtur

Source Code of com.nanolaba.surtur.Surtur

package com.nanolaba.surtur;

import com.nanolaba.surtur.gui.SurturGui;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.swing.*;

/**
* $Revision: 1 $
* $Author: andriishin $
* $Date: 2011-01-09 11:49:06 -0600 (Sun, 09 Jan 2011) $
*/
public class Surtur {

    @SuppressWarnings({"UnusedDeclaration"})
    private static final Log LOGGER = LogFactory.getLog(Surtur.class);

    public static void main(String... args) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Throwable t) {
            LOGGER.error("Can't setup L&F", t);
        }

        ApplicationContext context = new ClassPathXmlApplicationContext("surtur.xml");

        SurturGui surturGui = context.getBean("gui", SurturGui.class);
        surturGui.showMainFrame();
    }

}
TOP

Related Classes of com.nanolaba.surtur.Surtur

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.