String resource = "log.conf";
org.apache.log4j.PropertyConfigurator.configure(resource);
config = new PropertiesConfiguration("application.properties");
ExecutorService exec = Executors.newCachedThreadPool();
PictureHandler ph = new PictureHandler();
mainF = new MainFormThread();
exec.execute(mainF);
exec.execute(ph);
mainF.setPictureHandler(ph);
exec.shutdown();