是否可以在 toedter 的 JCalendar 中选择多天?就像我可以在日历中突出显示 2 或 3 天,然后在使用按钮触发事件后突出显示这些天。
或者我应该使用 JTable 作为日历更好?
I'd use a one column JTable
having a JDateChooserCellEditor
and a custom renderer. DemoTable
is an example, seen here. The TableModel
should contain a List<java.util.Date>
, as Date
implements Comparable
for easy sorting. You can supply an addRow()
method in DemoTableModel
, which can be invoked in your Add button's handler.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)