Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting Row /Column color of JTable

 
padma patil
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wanted to set the first row and first column of the JTable .
Can anybody help me in this? I read CellRendering but didn't understood when getTableCellRendererComponent(...) method get called and how it works.
I realy appreciate if anybody explains me.
Thanks,
Padmashree
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It gets called all the time. Pass the cursor over it and it gets called.

The above code should give you the general idea. Here is a site that contains some JTable examples.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!