Package emometer

Source Code of emometer.EmoMeter

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package emometer;

import emometer.utility.Window;
import emometer.view.Home;
import emometer.view.MainFrame;
import javax.swing.UIManager;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

/**
*
* @author Duli-chan
*/
public class EmoMeter {

    private static JedisPool pool;
   
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            e.printStackTrace();
        }
        pool = new JedisPool(new JedisPoolConfig(), "localhost");
        MainFrame mf = MainFrame.getInstance();
        mf.setVisible(true);
        Window.switchPanel(new Home());
    }

    /**
     * @return the pool
     */
    public static JedisPool getPool() {
        return pool;
    }
}
TOP

Related Classes of emometer.EmoMeter

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.