0

What should I do to focus on the specific date in calendar component?

I am not talking about indicator here. calendar.setCurrentDate() and calendar.setSelectedDate() gets the indicator on the date, but focus is always on date of 1st sunday. I have read on net that this functionality is not provided by calendar yet. Do any one have any idea? Any solution?

Mital Pritmani
  • 4,880
  • 8
  • 38
  • 39

1 Answers1

1

You can derive calendar and override updateButtonDayDate(Button dayButton, int currentMonth, int day).

Here you can perform a requestFocus() invocation when the specific date matches your requirement.

bharath
  • 14,283
  • 16
  • 57
  • 95
Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • Hey Shai Almog, can you provide some sample code? I had seen on some site your updated calendar class with fix of this bug but i could not get that jar so still stuck with this problem, please help me. – Mital Pritmani Jul 14 '11 at 10:21
  • All of our improvements are in SVN and unavailable as JAR's. You will need to download the LWUIT SVN sources and build them to get the latest LWUIT with all the new features. See the source link at http://lwuit.java.net/ – Shai Almog Jul 17 '11 at 04:56