Package com.suwish.pc

Source Code of com.suwish.pc.Startup

package com.suwish.pc;

import javax.swing.UIManager;

import com.suwish.pc.phone.PhoneManager;
import com.suwish.pc.ui.main.MainFrame;
import com.suwish.pc.util.ResourceUtils;
import com.suwish.pc.util.StringUtils;

public class Startup {

  public Startup(){}
 
  public void startup() throws Exception{
    Setting.initConfiguration();
    try{
      String lookFeel = Setting.get("lookfeel");
      if(!StringUtils.isEmpty(lookFeel)){
        UIManager.setLookAndFeel(lookFeel);
      }
    }catch(Exception ex){}
    PhoneManager.getInstance().initEvt();
    new MainFrame();
   
//    Class<?> setting = getClass().getClassLoader().loadClass("com.suwish.pc.Setting");
//    setting.getMethod("initConfiguration", (Class[])null).invoke(setting, (Object[])null);
//    Class<?> clazz = getClass().getClassLoader().loadClass("com.suwish.pc.ui.main.MainFrame");
//    clazz.newInstance();
  }
}
TOP

Related Classes of com.suwish.pc.Startup

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.