The JDatePicker and JDateField components can be used with JBuilder's dbSwing/DataExpress data binding framework. In order to allow the date editing components to work with the binding framework, we provide two wrapper classes (JdbDateField and JdbDatePicker) that can work with a certain data set and be bound to a certain column.
Here's how to do the actual binding:
//This is how the binding is done for a default Swing component.
JdbTextField mEmployeeId = new JdbTextField();
mEmployeeId.setDataSet(queryDataSet1);
mEmployeeId.setColumnName("EMPLOYEE_ID");
//This is how you bind JdbDatePicker or JdbDateField to edit a certain column.
JdbDateField mDoB = new JdbDateField();
mDoB.setDataSet(queryDataSet1);
mDoB.setColumnName("DOB");The model is placed in the jdatepicker-dbswing.jar file. Be sure to include it in your classpath. You can also access the model's source code to see how it is implemented. See the src/dbswing directory.