@Override
		public void actionPerformed(ActionEvent e) {
			switch (((JButton) e.getSource()).getText()) {

			case "Brush":
				DrawBrush brush = new DrawBrush(canvas);
				canvas.addDrawListener(brush);
				break;
				
			case "Bucket Fill":
				DrawBucketFill bucketFill = new DrawBucketFill(canvas);
				canvas.addDrawListener(bucketFill);
				break;

			case "Draw Rectangle":
				DrawShape shape1 = new DrawShape(canvas, ((JButton) e.getSource()).getText());
				canvas.addDrawListener(shape1);
				break;

			case "Fill Rectangle":
				DrawShape shape2 = new DrawShape(canvas, ((JButton) e.getSource()).getText());
				canvas.addDrawListener(shape2);
				break;

			case "Draw Oval":
				DrawShape shape3 = new DrawShape(canvas, ((JButton) e.getSource()).getText());
				canvas.addDrawListener(shape3);
				break;

			case "Fill Oval":
				DrawShape shape4 = new DrawShape(canvas, ((JButton) e.getSource()).getText());
				canvas.addDrawListener(shape4);
				break;

			case "Draw Line":
				DrawLine drawLine = new DrawLine(canvas);
				canvas.addDrawListener(drawLine);
				break;
			}

		}