• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable column help

 
Ron Summer
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy all,
I've been lurking for some time now and have gotten some great help from this site.
But I could not find what I was looking for in the archives. So here is where I'm asking for help.

My JTable is using a data model that has a column that is used to set the row color. When I display the table I get the column with the color data displayed which I don't want. When I do a remove of the column I don't get my row colors displayed which I do want.

This is my table model class:


This is my implementation of the table


I'm still a newbie at Java, so I'm still in the learning curve. As a newbie I could have the whole logic wrong so ......
Any help? An example would be great? A pointer to a tutorial? Anything that would help me move this project forward!
Thanks.
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ron Whyaskme", please check your private messages regarding an important administrative matter.

Thank you.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to post a small compilable program that demonstrates your problem. That way we can compile and run your code and see where the problems may be. I myself would really like to see how you are rendering your cells. For instance, here's my example of this (though note I'm no expert at table cell rendering):

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic