簡體   English   中英

2 jDateChooser 如何禁用其他jDatechooser的日期

[英]2 jDateChooser how to disable the date of other jDatechooser

我有 2 個 jdatechooser,1 個用於登記入住,1 個用於退房。 如果我的 jdatechooser 簽入選擇了今天的日期並且簽出將禁用昨天的日期或者我設置簽入日期 Oct-20-2016 簽出將禁用從 Oct-20 開始的日期,我如何禁用我的 jdatechooser 簽出日期 - 2016 Oct-19-2016 Oct-18-2016 就這樣...

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

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

在 dateChooser1 中選擇日期,如果Date date是允許的最小日期,請使用:

jDateChooser2.getJCalendar().setMinSelectableDate(date);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM