@Override
		public void actionPerformed(ActionEvent e) {
			Object source = e.getSource();
			if (source instanceof JButton) {
				if (btnAdd == source) {
					try {
						verify();
						if (JOptionPane.YES_OPTION == JOptionPane
								.showConfirmDialog(null,
										"Do you want to add this task?",
										"Confirmation",
										JOptionPane.YES_NO_OPTION,
										JOptionPane.INFORMATION_MESSAGE)) {
							if (save()) {
								JOptionPane.showMessageDialog(null,
										"Task added successfully!!!");
								clean();
							}
						}
					} catch (EmptyComponentException ex) {
						JOptionPane.showMessageDialog(null, ex.getMessage(),
								"Validation error", JOptionPane.ERROR_MESSAGE);
						ex.getComponent().requestFocus();
					} catch (Exception ex) {
						JOptionPane.showMessageDialog(null, ex.getMessage(),
								"Validation error", JOptionPane.ERROR_MESSAGE);

					}
				} else if (btnCancel == source) {
					dispose();
				}
			}
		}