Let's start with a simple data entry example. On this screen we enter dates and times. Here is what your screen will look like:
Now let's add the jcalendar buttons.
It's pretty simple, just:
1. Add the component to the screen: [new net.sourceforge.jcalendarbutton.JCalendarButton(); and .addComponent(...)]
2. Add a listener to the new component that will change the text field [.addPropertyChangeListener(...)]
3. Make sure the jcalendar components are notified of direct changes to the text fields (.setTargetDate(dateTime);).
Here is what your new screen will look like:
Final Source code.