JTable change cell colors using TableCellRenderer

后端 未结 2 1861
梦如初夏
梦如初夏 2020-12-21 17:32

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

2条回答
  •  无人及你
    2020-12-21 17:45

    As an alternative, consider using prepareRenderer(), as suggested by @mKorbel and shown in the article Table Row Rendering.

提交回复
热议问题