JTable custom cell renderer to create row header

Posted by hhj on Stack Overflow See other posts from Stack Overflow or by hhj
Published on 2010-06-09T12:19:30Z Indexed on 2010/06/09 12:22 UTC
Read the original article Hit count: 306

Filed under:
|

Can somebody please explain how I would create row headers? I already have the data and header texts set in the JTable: all I want to know is how I can use a cell renderer to take that first column (i.e. the row header column) and make it look like the column headers (i.e. the first row). Right now its background is white, so it looks like regular data. I want it to appear gray (or non-opaque I guess??). Oh and it should also not be selectable. Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about jtable