I am getting an error that it can't find the method getModel() and I am not sure what to do about this. I am trying to make it so that when a button is clicked, the dob variable is set to the value in the jdatechooser.
public Calendar getDOB()
{
return dob;
}
JDateChooser jdc = new JDateChooser();
JCalendar jc = new JCalendar();
Calendar calendar;
UtilDateModel model = new UtilDateModel();
model.setDate(1990, 8, 24);
JDatePanelImpl datePanel;
JDatePickerImpl datePicker;
Person samplePerson = new Person();
btnSubmit.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
samplePerson.setDOB(calendar.getModel().getValue());
}
});