public static void main(String[] args) {

		weka.core.logging.Logger.log(weka.core.logging.Logger.Level.INFO, "Logging started");
	    
		LookAndFeel.setLookAndFeel();
		
		JFrame jf = new JFrame("Bayes Network Editor");
		final GUI g = new GUI();
		JMenuBar menuBar = g.getMenuBar();

		if (args.length>0) {
			try {
				g.readBIFFromFile(args[0]);
			} catch (IOException ex) {
				ex.printStackTrace();
			} catch (BIFFormatException bf) {
				bf.printStackTrace();
				System.exit(-1);
			}
		}




	        jf.setJMenuBar(menuBar);		
		jf.getContentPane().add(g);
		jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		jf.setSize(800, 600);
		jf.setVisible(true);
		g.m_Selection.updateGUI();
		GenericObjectEditor.registerEditors();
	}