This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

JTable column help  RSS feed

 
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.
 
Sheriff
Posts: 23640
48
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.
 
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
Boost this thread!