Javafx JFXtras议程拖放新约会

Javafx JFXtras议程拖放新约会,javafx,jfxtras,Javafx,Jfxtras,我正在处理JFXtras议程,并尝试实施以下内容: 当您将指定对象从TableView拖动到日历时,它应该在您放置它的时间范围内进行新的约会。然后,此新约会应与拖动的对象链接 我现在得到的是一个更简单的变体,其中我使用displayedCalendarProperty的时间值在DragDrop上进行新约会: AppointmentImpl presentation = new Presentation(customObjectFromTableView) .withSta

我正在处理JFXtras议程,并尝试实施以下内容: 当您将指定对象从TableView拖动到日历时,它应该在您放置它的时间范围内进行新的约会。然后,此新约会应与拖动的对象链接

我现在得到的是一个更简单的变体,其中我使用displayedCalendarProperty的时间值在DragDrop上进行新约会:

AppointmentImpl presentation = new Presentation(customObjectFromTableView)
            .withStartTime(new GregorianCalendar(lAgenda.getDisplayedCalendar().YEAR, lAgenda.getDisplayedCalendar().MONTH, lAgenda.getDisplayedCalendar().DATE, lAgenda.getDisplayedCalendar().HOUR, lAgenda.getDisplayedCalendar().MINUTE))
            .withEndTime(new GregorianCalendar(lAgenda.getDisplayedCalendar().YEAR, lAgenda.getDisplayedCalendar().MONTH, lAgenda.getDisplayedCalendar().DATE, lAgenda.getDisplayedCalendar().HOUR+1, lAgenda.getDisplayedCalendar().MINUTE))
            .withSummary("Summary")
            .withDescription("A much longer test description")
            .withAppointmentGroup(new Agenda.AppointmentGroupImpl());
lAgenda.appointments().add(presentation);
正如您所看到的,课堂演示只是扩展了AppointImpl。似乎进行了新的演示,但日期完全错误,例如0001-03-05 10:12作为开始日期

有没有可能让这个新的演示从它被删除的时间段开始?如果没有,我如何修复上述代码,以便在给定的时间范围内而不是在0001年进行演示


编辑:我认为这个日期是最早的日期。我想我当时没有把约会的日期定对吧?

很抱歉反应太晚;我没有监控stackoverflow的问题

如果你能给我发一个独立的小例子,那就太好了,这样我就可以看到发生了什么