I looked for a free Java date picker class so I do not have to make one of my own. That would simplify things. The one I found that is free is found in SourceForge or you can go directly to this website: http://opensource.theotherbell.com.

Using it is pretty easy. Just instantiate the class and that is it. It comes with 2 jar files: one for the datepicker and one called AbsoluteLayout.jar which is a custom class for NetBeans only. Based on that, the author of this date picker module used NetBeans as the development environment.

If you try to set a background color of the DateField class, you will notice extra spaces margins on the top and left (see photo).

This is ok if you show this component only. But if you place them with other components, the extra space will not align the date picker component together with the others. I did a simply and dirty hack to remove them. See code below.

Related Posts Plugin for WordPress, Blogger...