How can I change my JLabel to look like a table cell with Substance?

Posted by DR on Stack Overflow See other posts from Stack Overflow or by DR
Published on 2010-04-15T11:09:45Z Indexed on 2010/04/15 11:13 UTC
Read the original article Hit count: 218

Filed under:
|
|

I have a custom TableCellRenderer which returns a JLabel as the renderer component.

Naturally the table cell now looks like a label and no longer like a table cell, which makes a difference especially when using Substance.

Is it possible to modify the label so that the LaF renders it like an ordinary table cell?

The best I could do was setting the background color of the label, but the borders and transition effets are missing.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing