I am using a JTable in my GUI application as a grid to represent positions for a game. I want the cells of the table that represent a certain position of an object to have a
As an alternative, consider using prepareRenderer(), as suggested by @mKorbel and shown in the article Table Row Rendering.