if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("time to layout module palette.."+end); }
	public void buildGUI(ModulesData modData)	{		Container content = getContentPane();		content.setLayout(new BorderLayout());				// what is the window that the chain modules are in?		ChainModuleData.setMainWindow(this);		JToolBar  tb = new JToolBar();		Icon smallChain = icons.getIcon("chains-small.png");		JButton newChain = new JButton(smallChain);		newChain.setToolTipText("Create a new chain");		newChain.addActionListener(cmdTable.lookupActionListener("new chain"));		tb.setFloatable(false);		tb.add(newChain);		content.add(tb,BorderLayout.NORTH);		moduleCanvas = new ModulePaletteCanvas(this);		moduleCanvas.setContents(modData);		moduleCanvas.layoutContents();				split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,true,null,moduleCanvas);		split.setPreferredSize(new Dimension(2*SIDE,SIDE));		configureTreeNode();		content.add(split,BorderLayout.CENTER); 				addComponentListener(this);		setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);		addWindowListener(new WindowAdapter() {			public void windowClosing(WindowEvent e) {				uiManager.closeWindows();				setVisible(false);			}		});	}