I am trying to get my JTable table's header to setOpaque(false) so I can see the background image in the same way I can see it for my table rows and columns.
Can someone please tell me how to do this, if it is even possible to do.
You might have to subclass the default TableCellRenderer which the JTableHeader uses to render the headers. Have a look at the setDefaultRenderer(TableCellRenderer) method of JTableHeader.
What I'm trying to do (which I'm not sure if its possible or not) is on my table header, I get the headings on a grey rectangle bar. I want to keep my headings but make the grey bar transparent.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.