I have created a JSpinner and linked a SpinnerDateModel to it like this.
travelTimeModel = new SpinnerDateModel();
travelTimeModel.setCalendarField(Calendar.MINUTE);
spinnerTravelTime = new JSpinner();
spinnerTravelTime.setModel(travelTimeModel);
spinnerTravelTime.setEditor(new JSpinner.DateEditor(spinnerTravelTime, "HH:mm"));
When I load the code the JSpinner shows the current time, so this part works.
However I'd like to change the value of the JSpinner according to a Calendar object received...
How can I change/add the time from the calendar object to the JSpinner and how should I read the time from the JSpinner into a Calendar object?