Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 JDateChooser 并设置了一系列日期。如果范围在另一个月份而不是当前月份,则 JDateChooser 默认在当前月份打开...如果我使用 setDate() 并在该范围内给出一个日期,它是有效的,但我希望文本字段在开始时保持空白.
有人知道怎么做吗?
创建对象时,将 true 传递给构造函数。这将导致它最初显示为空。
JDateChooser datefield = new JDateChooser(true);
资源