// create buttons for the drawing tools
toolBar.add(createAction(state, "arrow.gif", new ShapePickerDrawingTool(mainWindow.getDrawingArea())));
toolBar.add(createAction(state, "dot.png", new DotDrawingTool()));
toolBar.add(createAction(state, "line.png", new StraightLineDrawingTool(mainWindow.getDrawingArea())));
toolBar.add(createAction(state, "rectangle.png", new RectangleDrawingTool(mainWindow.getDrawingArea())));
toolBar.add(createAction(state, "circle.png", new OvalDrawingTool(mainWindow.getDrawingArea())));
toolBar.add(new JToolBar.Separator());
// create a color chooser button
AbstractColorChooserButton colorButton = new ColorChooserButton(state);