c.fill = GridBagConstraints.BOTH;
setLayout(gridbag);
components = new JComponent[6];
components[0] = new JDateChooser();
components[1] = new JDateChooser();
((JDateChooser) components[1]).getJCalendar().getDayChooser()
.addDateEvaluator(new BirthdayEvaluator());
((JDateChooser) components[1]).getJCalendar().getDayChooser()
.addDateEvaluator(new TestDateEvaluator());
((JDateChooser) components[1]).getJCalendar().setTodayButtonVisible(
true);
((JDateChooser) components[1]).getJCalendar().setNullDateButtonVisible(
true);
components[2] = new JDateChooser(new Date());
components[3] = new JDateChooser(null, null, null,
new JSpinnerDateEditor());
components[4] = new JDateChooser("yyyy/MM/dd", "####/##/##", '_');
components[5] = new DemoTable();
addEntry("Default", components[0], gridbag);
addEntry("Default (with addons)", components[1], gridbag);
addEntry("Default with date set", components[2], gridbag);