Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java- iCal4j - Adding description of a meeting

Tags:

java

ical4j

I am using iCal4j to creating ics file from outlook calendar. Now when I am creating a VEvent object, I am adding the calendar subject.

VEvent meeting = new VEvent(startDate, endDate, subject);

But how to add the meeting description ? I could not find any option to add it. Any suggestion will be deeply appreciated.

Thanks.

like image 422
Barun Avatar asked Sep 06 '25 06:09

Barun


1 Answers

You have to do it through the properties list; for example

VEvent meeting = new VEvent(startDate, endDate, subject);
meeting.getProperties().add(new Description("Description text goes here"));
like image 90
Ernest Friedman-Hill Avatar answered Sep 09 '25 02:09

Ernest Friedman-Hill