I'm using the calendar of JFXtras, by default the events have 24 groups (categories) and I want to change them. this is the default code :
public final static List<AppointmentGroup> DEFAULT_APPOINTMENT_GROUPS = IntStream.range(0, 24)
.mapToObj(i -> new Agenda.AppointmentGroupImpl()
.withStyleClass("group" + i)
.withDescription("group" + (i < 10 ? "0" : "") + i))
.collect(Collectors.toList());
final public static List<String> CATEGORIES = IntStream.range(0, 24)
.mapToObj(i -> new String("group" + (i < 10 ? "0" : "") + i))
.collect(Collectors.toList());