• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

alternate row colors in jtable when cells are panels

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wanted to have alternate row colors for my jtable.
it is working when table cell components are textfield or button.
its not working when i use jpanels as cell component.

thanks.
 
Rob Spoor
Sheriff
Pie
Posts: 20514
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ItDoesntWorkIsUseless. Please show us your renderers.
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get better help sooner, post a SSCCE that clearly demonstrates your problem.
 
Rob Camick
Ranch Hand
Posts: 2566
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Table Row Rendering shows an alternative approach.
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the replies..i got it solved.
i have not set opaque to true for the panel so text field or button field is over writing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic