by jacob » Tue Jul 17, 2012 8:58 am
The checkboxes are declared as type CheckBox in CheckBoxListCellRenderer, which is the obvious choice. However, they could just as easily be abstracted to JToggleButton or JAbstractButton. The major benefit of it being a JToggleButton is that this would allow using a radio button pretty easily via subclassing. Seems like a fairly common use case, I'm currently jumping through hoops to make it happen. I know this is a minor thing, but it would be very trivial to change and I can't see any downside.