my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes JTable column help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable column help" Watch "JTable column help" New topic
Author

JTable column help

Ron Summer
Greenhorn

Joined: Feb 05, 2010
Posts: 8
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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

"Ron Whyaskme", please check your private messages regarding an important administrative matter.

Thank you.
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
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):

 
GeeCON Prague 2014
 
subject: JTable column help