private void txtDvdCodeChanged() {
		String dvdCode = formMain.txtDvdId.getText();
		if (dvdCode.trim().matches("([0-9]*)")) {
			if (!dvdCode.isEmpty() && !dvdTableChanged && !dvdNameCanged) {
				Vector<DVD> dvds = new Vector<DVD>();
				dvdCodeCanged = true;
				List<DVD> dvdLst = dao.findByCode(Integer.parseInt(dvdCode));
				dvds.addAll(dvdLst);
				for (DVD dvd : dvdLst) {
					if (dvd.getNumberOfDvds() > 0) {
						dvd.setAvailable(true);
					} else
						dvd.setAvailable(false);
				}
				formMain.dvdTableModel.setDataVector(dvds);
				formMain.dvdTableModel.fireTableDataChanged();
				formMain.cmbDvdCategory.setSelectedIndex(0);
				formMain.cmbDVDLanguage.setSelectedIndex(0);
				formMain.txtDvdName.setText("");
				dvdCodeCanged = false;
			}
		} else {
			JOptionPane.showMessageDialog(null, "Please enter  valid DVD code",
					"Invalid DVD Code!", JOptionPane.ERROR_MESSAGE);
			formMain.txtDvdId.selectAll();
			return;
		}
	}