private void addTransaction() throws NumberFormatException, IOException {

		Transaction transaction = new Transaction();
		transaction.setCustomerId(selectedCustomer.getId());
		transaction.setDateOfTransaction(today);
		transaction.setDvdId(selectedDvd.getId());
		Date dueDate = calander.getTime();
		DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM);
		transaction.setDateOfTransaction(today);
		transaction.setDueDate(dueDate);
		formMain.txtDueDate.setText(dateFormat.format(dueDate));
		formMain.txtLentDate.setText(dateFormat.format(today));
		Vector<Transaction> vector = new Vector<Transaction>();
		vector.add(transaction);
		formMain.transactinTblModel.setDataVector(vector);
		formMain.transactinTblModel.fireTableDataChanged();
	}