1
votes

Good day all, I was recently searching through the codename one external lib page and I saw the calendar lib, which really interests me because it will make my current project and future ones less stressful, the problem is that on opening the page I saw no downloadable codename one lib, neither did I see a way to go about using it. A lil help will be appreciated on how to get the lib up and running in my current project. Thanks all

1

1 Answers

2
votes

When you searched the extensions library for Calendar, you should see a download button on the bottom-right corner.

Download it -> right-click on your project -> Codename One -> Refresh-cn1lib files, and you can start using it.

myButton.addActionListener(evt -> {
    DeviceCalendar calendar = DeviceCalendar.getInstance();
    calendar.saveEvent(calendarID, eventID, title, startTimeStamp, endTimeStamp, allDayEvent, notes, location, reminders);
});