-1

I saw there's another question like this but the answer isn't useful for me since I added the JDateChooser with the design option in NetBeans, so I don't know how to set the min and max date for the pick.

Brijesh Kalkani
  • 789
  • 10
  • 27
Juan9900
  • 23
  • 4

1 Answers1

0

Assuming JDateChooser uses an extends of the SpinnerDateModel then you just need to get the model and set the start and end date.

SpinnerDateModel model = (SpinnerDateModel) chooser.getModel();
model.setStart(startDate)
model.setEnd(endDate);
Ryan
  • 1,762
  • 6
  • 11