public void actionPerformed(ActionEvent ae) {
	    // your code here
        String string = ae.getActionCommand();

        try
        {
            if(string.equals("Add")) processAdding();
            if(string.equals("Delete")) processDeletion();
            //if(string.equals("View Attendances")
            if(string.equals("Save and Exit")) processSaveAndClose();
        }
        catch (Exception e)
        {
            JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
        }
	}