简体   繁体   中英

2 jDateChooser how to disable the date of other jDatechooser

I have 2 jdatechooser, 1 is for check in and 1 is for checkout. How can I disable the date of my jdatechooser checkout if my jdatechooser check in is selected the date today and the checkout will disable the date yesterday or I set the checkin date Oct-20-2016 the checkout will disable the date from Oct-20-2016 Oct-19-2016 Oct-18-2016 like that...

jDateChooser2.setValue(jDateChooser1.getValue().plusDays(1));

https://i.stack.imgur.com/l8zxj.png

在 dateChooser1 中选择日期,如果Date date是允许的最小日期,请使用:

jDateChooser2.getJCalendar().setMinSelectableDate(date);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM