mapEventAdapter.addListener(pourButton);
mapEventAdapter.addListener(eyedButton);
mapEventAdapter.addListener(marqueeButton);
mapEventAdapter.addListener(objectMoveButton);
YToolBar toolBar = new YToolBar();
// toolBar.setFloatable(true);
toolBar.add(moveButton);
toolBar.add(paintButton);
toolBar.add(eraseButton);
toolBar.add(pourButton);
toolBar.add(eyedButton);
toolBar.add(marqueeButton);
// toolBar.add(Box.createRigidArea(new Dimension(5, 5)));
// toolBar.add(objectAddButton);
// toolBar.add(objectRemoveButton);
// toolBar.add(objectMoveButton);
toolBar.add(Box.createRigidArea(new Dimension(0, 5)));
toolBar.add(new TButton(zoomInAction));
toolBar.add(new TButton(zoomOutAction));
toolBar.add(Box.createRigidArea(new Dimension(5, 5)));
toolBar.add(Box.createGlue());
brushPreview = new BrushPreview();
mapEventAdapter.addListener(brushPreview);
toolBar.add(brushPreview);
return toolBar;
}