void (Date date) { myCalendar.setTime(date); myYears.setValue(Integer.valueOf(myCalendar.get(Calendar.YEAR))); myMonths.setSelectedIndex(myCalendar.get(Calendar.MONTH)); myDays.setSelectedIndex(myCalendar.get(Calendar.DAY_OF_MONTH) - 1); myHours.setValue(Integer.valueOf(myCalendar.get(Calendar.HOUR_OF_DAY))); myMinutes.setValue(Integer.valueOf(myCalendar.get(Calendar.MINUTE))); mySeconds.setValue(Integer.valueOf(myCalendar.get(Calendar.SECOND))); }