Swing JTable - Highlight selected cell in a different color from rest of the selected row?

前端 未结 3 1305
别那么骄傲
别那么骄傲 2020-12-10 15:58

I have a basic swing JTable and the requirement is that when clicked on any cell, the entire row should be highlighted, and also that the cell which was clicked should be a

3条回答
  •  旧巷少年郎
    2020-12-10 16:28

    You would need to turn row selection off and cell selection on for the table. Then find a way to go back and highlight the row if needed.

提交回复
热议问题