
import dirk_krause.jtools.GuiController;
import javax.swing.SwingUtilities;

public class Png2PdfGUI {
	static public final String appName = "Png2PdfGUI";
	
	class GuiBuilder implements Runnable
	{
		protected GuiController g = null;
		protected Png2PdfController p = null;
		
		public GuiBuilder(GuiController gc, Png2PdfController pc)
		{
			g = gc; p = pc;
		}
		public void run()
		{
			g.initialize();
			Png2PdfWindow w = new Png2PdfWindow(g, p);
			w.setVisible(true);
			w.retrievePng2pdfSettings();
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Png2PdfGUI ppg = new Png2PdfGUI();
		ppg.run();
	}
	
	void run()
	{
		GuiController guic = new GuiController(appName);
		Png2PdfController ppc = new Png2PdfController(appName);
		SwingUtilities.invokeLater(new GuiBuilder(guic, ppc));
	}

}
