1

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?

JLawrence
  • 192
  • 5
  • 22

1 Answers1

2

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.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045