@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getSource() == garageView.searchButton){
			getInformation();
		}
		
		else if(e.getSource() == garageView.addDamageButton){
			if(vehicleID != 0){
				showAddDamage();
			}else {
				JOptionPane.showMessageDialog(null, "Geen geldige invoer","Ongeldig", JOptionPane.ERROR_MESSAGE);
			}
		}
		
		else if (e.getSource() == garageView.approveButton) {
			Vehicle vehicle = new Vehicle();
			vehicle.setVehicleAvailable(vehicleID, 0);
			
			JOptionPane.showMessageDialog(null,
					"Voertuig is goedgekeurd voor verhuur", "Succes", JOptionPane.QUESTION_MESSAGE);
			
			clearText();
		}
		
		else if(e.getSource() == addDamage.addButton)
		{
			int checked = 1;
			if(addDamage.readyCheckbox.isSelected()){
				checked = 0;
			}

			// Initiate the model
			Damage damage = new Damage();
			damage = addDamage.getModel();

			// Insert the damage
			damage.Insert(damage);
			
			// Set the vehicle available
			Vehicle vehicle = new Vehicle();
			vehicle.setVehicleAvailable(vehicleID, checked);
			
			addDamage.dispose();
		}
	}