@Override
	public void valueChanged(ListSelectionEvent e) {
		imageSlider.icon = (ImageIcon)imageSlider.iconList.getSelectedValue();
		try {
			imageSlider.imgUrl = imageSlider.icon.getDescription();
		} catch (Exception e2) {
			// Maybe set the logo of the company here
			imageSlider.imgUrl = "http://jimpunk.net/Loading/wp-content/uploads/loading1.gif";
		}
		
		// Get the image url from the database
		for (Vehicle vh : imageSlider.v.getAll()) {
			if (vh.getImageURL().equals(imageSlider.imgUrl)) {
				// Set the id
				imageSlider.vehicle = vh.getById(vh.getVehicleID());
				// Change the text
				imageSlider.setvID(vh.getVehicleID());
				imageSlider.ChangeText();
			}
			
		}

		// Set the images to the panel.
		new SwingWorker<BufferedImage, Void>() {
			protected BufferedImage doInBackground() throws Exception {
				// Read the URL of the images
				return ImageIO.read(new URL(imageSlider.imgUrl));
			};

			@Override
			protected void done() {
				try {
					// Set the image to the panel
					imageSlider.imagePanel.setImage(get());
				} catch (InterruptedException e) {
					e.printStackTrace();
				} catch (ExecutionException e) {
					e.printStackTrace();
				}
			}
		}.execute();
	}