public static void main(String[] args) 
    {
    	main = new Main();
 
		javax.swing.SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				createAndShowGUI();
			}
		});
        main.attachShutDownHook();
    }