The handler and editor are processed separately. Therefore, when you click on a cell, it displays the editor component instead of the rendering component displayed earlier. It looks like you have centered the JCheckBox used as a renderer, but not the JCheckBox used as an editor. Center the editor the same way you centered the renderer.
This is the best answer I can give you without further details.
source
share