Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

TableCellRenderer  RSS feed

 
Kee Kee moon
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two rows and 18 columns on JTable. Please see my program below. I use the program for setting each cell color.
Why does it loop twice. It should have 36 counts, but it turns out total 72 counts.




[Edit - added code tags - MB]
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kee Kee moon wrote:

I don't know, but there must be something different about the code you're running. That won't compile - the prepareRenderer method doesn't return anything.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!