@Override
	public void stateChanged(ChangeEvent arg0) {

		Date d = (Date) startTimeSpinner.getValue();
		Calendar c = Calendar.getInstance();
		c.setTime(d);
		int m = c.get(Calendar.MINUTE);
		if (m % 15 != 0) {
			if (m%15 > 8) {
				m -= m%15;
			}
			else {
				m += 15 - m%15;
			}
			c.set(Calendar.MINUTE, m);
		}
		
		startTimeSpinner.setValue(c.getTime());
		trip.setTripStartTime(c.getTime());
		slider.setLocation(timeToX(c.getTime()), slider.getLocation().y);
		
	}