private void draw(Graphics g) {
		Graphics2D g2d = (Graphics2D) g;

		// antialiasing ON
		g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
				RenderingHints.VALUE_ANTIALIAS_ON);
		

		//enable user input
		if(fleetEditorModel.getVehicles().size() > 0){
			
			saveVehicleJB.setEnabled(true);
			deleteVehicleJB.setEnabled(true);
			enableUserInput();

			//for all vehicles
			Vehicle vehicle = fleetEditorModel.getVehicles().get(fleetEditorModel.getVehiclePos());
			
			vehicleIDJTF.setText(String.valueOf(vehicle.getId()));
			vehicleNameJTF.setText(vehicle.getName());
			vehicleSpeedJCB.setSelectedItem(new Integer(vehicle.getMaxSpeed()));

			//if car
			if(vehicle instanceof Car){
				
				Car c = (Car) vehicle;
				
				vehicleGasUsageLowJCB.setSelectedItem(new Float(c.getGasConsumptionLow()));
				vehicleGasUsageLowJCB.setEnabled(true);
				vehicleGasUsageMediumJCB.setSelectedItem(new Float(c.getGasConsumptionMedium()));
				vehicleGasUsageMediumJCB.setEnabled(true);
				vehicleGasUsageHighJCB.setSelectedItem(new Float(c.getGasConsumptionHigh()));
				vehicleGasUsageHighJCB.setEnabled(true);
				
			//if bicycle
			}else if(vehicle instanceof Bicycle){
				
				vehicleGasUsageLowJCB.setSelectedIndex(-1);
				vehicleGasUsageLowJCB.setEnabled(false);
				vehicleGasUsageMediumJCB.setSelectedIndex(-1);
				vehicleGasUsageMediumJCB.setEnabled(false);
				vehicleGasUsageHighJCB.setSelectedIndex(-1);
				vehicleGasUsageHighJCB.setEnabled(false);
			}			
		}else{
			
			saveVehicleJB.setEnabled(false);
			deleteVehicleJB.setEnabled(false);
		
			
		}
		
		
		// draw vehicles in fleetSelection
		if(fleetEditorModel.getVehicles().size() > 2){
			
			if(fleetEditorModel.getVehiclePos() - 1 == -1){
				fleetPreviousVehicleII = new ImageIcon(fleetEditorModel.getVehicles().get(fleetEditorModel.getVehicles().size()-1).getVehicleTypes().getUrlVehicle());
				fleetPreviousVehicleII.setImage(fleetPreviousVehicleII.getImage().getScaledInstance(150, 150,Image.SCALE_DEFAULT));					
				fleetPreviousVehicleJL.setIcon(fleetPreviousVehicleII);
			}else {
				fleetPreviousVehicleII = new ImageIcon(fleetEditorModel.getVehicles().get(fleetEditorModel.getVehiclePos()-1).getVehicleTypes().getUrlVehicle());
				fleetPreviousVehicleII.setImage(fleetPreviousVehicleII.getImage().getScaledInstance(150, 150,Image.SCALE_DEFAULT));					
				fleetPreviousVehicleJL.setIcon(fleetPreviousVehicleII);
			}
			
			fleetCurrentVehicleII = new ImageIcon(fleetEditorModel.getVehicles().get(fleetEditorModel.getVehiclePos()).getVehicleTypes().getUrlVehicle());
			fleetCurrentVehicleII.setImage(fleetCurrentVehicleII.getImage().getScaledInstance(250, 250,Image.SCALE_DEFAULT));
			fleetCurrentVehicleJL.setIcon(fleetCurrentVehicleII);
	
			if(fleetEditorModel.getVehiclePos() +1 == fleetEditorModel.getVehicles().size()){
				fleetNextVehicleII = new ImageIcon(fleetEditorModel.getVehicles().get(0).getVehicleTypes().getUrlVehicle());
				fleetNextVehicleII.setImage(fleetNextVehicleII.getImage().getScaledInstance(150, 150,Image.SCALE_DEFAULT));
				fleetNextVehicleJL.setIcon(fleetNextVehicleII);
			}else {
				fleetNextVehicleII = new ImageIcon(fleetEditorModel.getVehicles().get(fleetEditorModel.getVehiclePos()+1).getVehicleTypes().getUrlVehicle());
				fleetNextVehicleII.setImage(fleetNextVehicleII.getImage().getScaledInstance(150, 150,Image.SCALE_DEFAULT));
				fleetNextVehicleJL.setIcon(fleetNextVehicleII);
			}

		}else if(fleetEditorModel.getVehicles().size() > 1){
			
			fleetCurrentVehicleII = new ImageIcon(fleetEditorModel.getVehicles().get(fleetEditorModel.getVehiclePos()).getVehicleTypes().getUrlVehicle());
			fleetCurrentVehicleII.setImage(fleetCurrentVehicleII.getImage().getScaledInstance(250, 250,Image.SCALE_DEFAULT));
			fleetCurrentVehicleJL.setIcon(fleetCurrentVehicleII);

			if(fleetEditorModel.getVehiclePos() +1 == fleetEditorModel.getVehicles().size()){
				fleetNextVehicleII = new ImageIcon(fleetEditorModel.getVehicles().get(0).getVehicleTypes().getUrlVehicle());
				fleetNextVehicleII.setImage(fleetNextVehicleII.getImage().getScaledInstance(150, 150,Image.SCALE_DEFAULT));
				fleetNextVehicleJL.setIcon(fleetNextVehicleII);
			}else {
				fleetNextVehicleII = new ImageIcon(fleetEditorModel.getVehicles().get(fleetEditorModel.getVehiclePos()+1).getVehicleTypes().getUrlVehicle());
				fleetNextVehicleII.setImage(fleetNextVehicleII.getImage().getScaledInstance(150, 150,Image.SCALE_DEFAULT));
				fleetNextVehicleJL.setIcon(fleetNextVehicleII);
			}
			
			fleetPreviousVehicleJL.setIcon(null);

			
		}else if(fleetEditorModel.getVehicles().size() > 0){
			
			fleetCurrentVehicleII = new ImageIcon(fleetEditorModel.getVehicles().get(fleetEditorModel.getVehiclePos()).getVehicleTypes().getUrlVehicle());
			fleetCurrentVehicleII.setImage(fleetCurrentVehicleII.getImage().getScaledInstance(250, 250,Image.SCALE_DEFAULT));
			fleetCurrentVehicleJL.setIcon(fleetCurrentVehicleII);
			
			fleetNextVehicleJL.setIcon(null);
			fleetPreviousVehicleJL.setIcon(null);

		}else{
			
			fleetCurrentVehicleJL.setIcon(null);
			fleetNextVehicleJL.setIcon(null);
			fleetPreviousVehicleJL.setIcon(null);
			
		}
		
		
		// draw vehicle in vehicleSelection
		vehicleSelectionII = new ImageIcon(fleetEditorModel.getVehicleSelection().get(fleetEditorModel.getVehicleSelectionPos()).getVehicleTypes().getUrlVehicle());
		vehicleSelectionII.setImage(vehicleSelectionII.getImage().getScaledInstance(200, 200,Image.SCALE_DEFAULT));
		vehicleSelectionJL.setIcon(vehicleSelectionII);

		}