*
* @param event The ActionEvent triggered when the tool bar button was pressed.
*/
public void actionPerformed(ActionEvent event) {
ToolPanelLocation toolPanelLocation = application.getToolPanelLocation();
ToolType tool = ToolType.valueOf(event.getActionCommand());
switch (tool) {
case BRUSH:
// Pop up brush chooser.
BrushChooserDialog brushDialog = new BrushChooserDialog((Component)event.getSource(), false, toolPanelLocation);
brushDialog.setVisible(true);