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.
Asked
Active
Viewed 209 times
-1
-
Then just add a comment to the existing question. It's not necessary to create a new one. – Russ J Mar 18 '20 at 18:20
1 Answers
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