• 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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: 23876
50
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):

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!