@Override
	public void actionPerformed(ActionEvent event) {
		/* Redo listenner */
		if (event.getSource().equals(redo)) {
			points = drawPanel.getPoints();
			for (Point point : pointstoAddorRemove) {
				points.add(point);
			}
			drawPanel.setPoints(points);
			drawPanel.paintComponent(drawPanel.getNextGraphics());
		}
		/* Undo listenner */
		if (event.getSource().equals(undo)) {
			points = drawPanel.getPoints();
			if (!(drawPanel.getPointsToRemoveorAdd().size() == 0))
				pointstoAddorRemove = drawPanel.getPointsToRemoveorAdd();
			for (Point removeThisPoint : pointstoAddorRemove) {
				for (int i = 0; i < points.size(); i++) {
					if (points.get(i).equals(removeThisPoint)) {
						points.remove(i);
					}
				}
			}
			drawPanel.setPointsToRemove();
			drawPanel.setPoints(points);
			drawPanel.paintComponent(drawPanel.getPrevGraphics());
		}
	}