1314151617181920
/*** * Metodo che si occupa di lanciare il programma * @param args */ public synchronized static void main(String[] args) { MainLoop loop = new MainLoop(new InterfacciaSwing()); loop.run(); }
6263646566676869707172
Thread t = new Thread("GST MainLoop Thread") { @Override public void run() { new MainLoop().run(); // TODO: what do we do with this? } }; t.setDaemon(true); t.start();
46474849505152
} private static MainLoop loop; @BeforeClass public static void setUpClass() throws Exception { Gst.init("ExecutorServiceTest", new String[] {}); (loop = new MainLoop()).startInBackground(); }