Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

make uneditable cell a different color

 
David Shepherd
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTable and I want to make a cell a different color depending on the value in one of the other columns of the same row. Basically, set the color of cells on a cell by cell basis.
I have tried to create a custom table cell renderer that will change the background color is the component in the cell in not editable but I have not had much luck. Am I on the right track?
Can someone please give me some guidance. It can't be that hard but it's killing me!
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic