How to create the custom Calendar in LWUIT?

calendar, codenameone, java-me, lwuit

Solution

You can derive Calendar and override:

protected void updateButtonDayDate(Button dayButton, int currentMonth, int day);

Here you can effectively customize the button in any way you choose starting by setting a UIID or anything like that.

If you want to add basic features to the button via inheritance you can override:

protected Button createDay();

Problem

Currently in LWUIT, I can use `Calendar`. But I can't add the notes on particular dates. How to create the custom `Calendar` in LWUIT? Because I need to show the birthday notes on LWUIT `Calendar` and want to show the birthday notes when user select that particular dates. See this sample image, Is this possible to create like above sample `Calendar` in LWUIT?

Original source