Posted by eloijr
on October 26, 2009 at 4:40 AM PDT
Yes, there is a DateField component for LWUIT and it is ready for use! It is localized too! It was created by Marlon Luz from IndT, Manaus, Brazil, and the Tranqueira Project is using it.
With this DateField it is very easy to configure date formats and check for a valid day, month and year and fix these values, if there is something wrong with them. Because I guess it is not interesting to show the input mode (“123”) for this component, I decided to unable this resource on Tranqueira Project.
DateField is using a great characteristics of LWUIT: its similarity with Swing. It is using a descendant class of DefaulLookAndFeel (DateFieldLookandFeel) to draw some graphics difference between DateField and TextField (its ancestor).
It can be enhanced and become even better. Try Tranqueira Project but try the DateField used in this project too.