Is it possible to select multiple days in toedter's JCalendar? Like I would be able to highlight 2 or 3 days in the calendar and then get the days highlighted after I would trigger an event using a button.
or should i be better off using a JTable for a calendar?
trashgod
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.
来源:https://stackoverflow.com/questions/16420809/jcalendar-multiple-day-selection