if (panIcon != null) pan= new JButton(panIcon); else pan = new JButton("pan"); pan.addActionListener(this); group.add(pan); tb.add(pan);  if (zoomIcon != null) zoom= new JButton(zoomIcon); else zoom = new JButton("zoom"); zoom.addActionListener(this); group.add(zoom); tb.add(zoom);   pan.setEnabled(true); zoom.setEnabled(false); tb.setFloatable(false);  content.add(tb,BorderLayout.NORTH);
	public void buildGUI() {		Container content = getContentPane();		content.setLayout(new BorderLayout());				JToolBar tb = new JToolBar();		tb.setFloatable(false);		tb.setBackground(Constants.CANVAS_BACKGROUND_COLOR);		ButtonGroup group = new ButtonGroup();		IconFactory icons = dataManager.getIconFactory();		Icon zoomIcon = icons.getIcon("zoomMode.png");		Icon panIcon = icons.getIcon("pan.png");				if (panIcon != null)			pan= new JButton(panIcon);		else 			pan = new JButton("pan");		pan.addActionListener(this);		group.add(pan);		tb.add(pan);				if (zoomIcon != null)			zoom= new JButton(zoomIcon);		else 			zoom = new JButton("zoom");		zoom.addActionListener(this);		group.add(zoom);		tb.add(zoom);						pan.setEnabled(true);		zoom.setEnabled(false);		tb.setFloatable(false);				content.add(tb,BorderLayout.NORTH);						chainCanvas = new ChainPaletteCanvas(dataManager);		chainCanvas.setContents(dataManager.getChains());		chainCanvas.layoutContents();		chainCanvas.completeInitialization();				content.add(chainCanvas,BorderLayout.CENTER);				chainCanvas.setPreferredSize(				new Dimension(ModulePaletteWindow.SIDE,ModulePaletteWindow.SIDE));		//setSize(new Dimension(ModulePaletteWindow.SIDE,ModulePaletteWindow.SIDE));		pack();			addComponentListener(new ComponentAdapter() {			public void componentResized(ComponentEvent e) {				if (chainCanvas != null)					chainCanvas.scaleToResize();			}		});		//tb.setMaximumSize(tb.getSize());	}