JTable custom header renderer that looks like other headers with nimbus look and feel?

Posted by startoftext on Stack Overflow See other posts from Stack Overflow or by startoftext
Published on 2010-06-04T14:18:33Z Indexed on 2010/06/17 16:33 UTC
Read the original article Hit count: 449

Filed under:
|
|

Any time I create a custom header renderer for a JTable it ends up not looking correct with the nimbus look and feel. The default table headers have a silvery gradient, custom renderers do not look that way. In the past I just avoided creating custom header renderers. Is it possible to copy the default look onto my new custom renderer? Basically I want to add a checkbox and have the area around it look like a normal column header, not just gray. I do know how to add the checkbox though and make it click-able. Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about swing