private static void createAndShowGUI() {
		//Create and set up the window.
		appFrame = new JFrame();
		appFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		System.out.println("creating GUI. . .");

		Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
		System.out.println(dimension.width);
		System.out.println(dimension.height);
		appFrame.setPreferredSize(dimension);

		panel = new ACOPanel(theGraph, dimension, wait1);
		panel.setOpaque(true);
		panel.setBackground(Color.white);
		panel.setVisible(true);
		panel.setDoubleBuffered(true);
		appFrame.setContentPane(panel);		

		appFrame.validate();
		appFrame.pack();
		appFrame.setVisible(true);
		
		System.out.println("HIERARCHY:");
		System.out.println(panel.getSize().width + ", " +panel.getSize().height);
		System.out.println(panel.canvas.getSize().width + ", "+panel.canvas.getSize().height);
	}