private void addItem() throws Throwable {
		int units;
		if(!txt_Code.getText().equals("")) {
			String code = txt_Code.getText();
			Items k = new Items(code);
			int id = k.getID();
			String prodName = k.getName();
			double denom = k.getPrice();
			if(txt_Units.getText().equals("")) {
				units = 1;
			} else {
				units = Integer.parseInt(txt_Units.getText());
			}
			
			if(k.validate(code)) {
				TotalPrice += denom*units;
				model.addRow(new Object[] {units, prodName, denom*units});
				label_TotalPrice.setText(TotalPrice+" Php");
				txt_Code.requestFocus();
				
				updateDB(id, units);
			}
			
			txt_Code.setText("");
			txt_Units.setText("");
		}
		
	}