• Post Reply Bookmark Topic Watch Topic
  • New Topic

About paintining rows of JXTable

 
Gultekin Butun
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

First I want to tell you that I am learning java newly and I am trying to do a small java desktop application. Problem is that My JxTable has alot of record and some records have score column, I want to paint rows that has score point less than 50 with different color. Can anyone help me about this problem? Thanks for your interest.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

You need to provide a custom renderer.
Check out http://download.oracle.com/javase/tutorial/uiswing/components/table.html#editrender
 
Gultekin Butun
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help. I visited your recommend link and I am performing the directions for JTable and It is working, but it is not working for the JXTable
 
Gultekin Butun
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help. I visited your recommend link and I am performing the directions for JTable and It is working, but it is not working for the JXTable
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PatienceIsAVirtue. No need to kick this thread 10 hours later, especially with exactly the same message.
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hadn't heard of JXTable (not part of the standard Java API) so I googled it and quickly found its API documentation. Where it said this:
One can automatically highlight certain rows in a JXTable by attaching Highlighters in the setHighlighters(HighlighterPipeline)method.

So since you're asking about highlighting certain rows, perhaps you should look into doing that.
 
Gultekin Butun
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:I hadn't heard of JXTable (not part of the standard Java API) so I googled it and quickly found its API documentation. Where it said this:
One can automatically highlight certain rows in a JXTable by attaching Highlighters in the setHighlighters(HighlighterPipeline)method.

So since you're asking about highlighting certain rows, perhaps you should look into doing that.


Thanks for your helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!