Package com.sevenrtc.aas

Source Code of com.sevenrtc.aas.Main

package com.sevenrtc.aas;

import com.jgoodies.looks.plastic.PlasticXPLookAndFeel;
import com.sevenrtc.aas.db.DAO;
import com.sevenrtc.aas.shared.Contas;
import com.sevenrtc.aas.ui.PrincipalFrame;
import java.awt.EventQueue;
import java.util.Locale;
import java.util.TimeZone;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class Main {

    public static void main(String[] args) {
        // script de inicializacao
        TimeZone.setDefault(TimeZone.getTimeZone("Etc/GMT+3"));
        Locale.setDefault(new Locale("pt", "BR"));
        DAO.load();
        Contas.updateCategorias();

        EventQueue.invokeLater(new Runnable() {

            public void run() {
                try {
                    UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
                    new PrincipalFrame().setVisible(true);
                } catch (UnsupportedLookAndFeelException ex) {
                    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });
    }
}
TOP

Related Classes of com.sevenrtc.aas.Main

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.