Using 8.1.47.
Easy to reproduce. Create a brand new power table.
You will see the header has black text.
Now set the enabled property to false. It greys out as expected.
However, turning enabled back to true leaves it as greyed out, not the black text from when it was initally started.
Don’t know if this is known, if im missing something simple, or theres a work around/some property to inform the table of the header font propertes. Feels like out of the box though this should just go back to black when re-enabled.
Thanks, this is a known issue we're already tracking. Unfortunately I don't see an easy workaround described in the ticket, though I'm sure it's possible in the Swing environment.
1 Like
Yea just spent an hour looking at it. Only thing close is get/set headerFont but there’s no colors associated with java.awt.Font and I see no other way I could possibly influence it through the java docs VisionAdvancedTable
Going to give up. Thakns for confirming
Yeah, I tried looking at the internals for a few minutes and couldn't figure out an easy solution. The problem seems to be that the inner renderer/look and feel code continues to think the header is 'disabled' even after you've re-enabled it, and I can't figure out why. It might be possible to cascade in some kinda hack that just goes through and forcibly sets all child components to 'enabled' state whenever the root component's enabled property changes.