CustomCheckbox is a bad name. It's import to name it so we immediately understand what it does. Naming is hard :)

I 'd suggest something like MixedCheckBox.

Also, because JCheckBox capitalizes the B of Box, all class names and variable names should do that too.