Power Table Header cell spacing/padding

I am setting the header alignment in the “configureHeaderStyle” function but i can’t seem to find how i can set a padding or cell spacing for the header. When aligning it puts the text right on the edge. I know for the records of the table you can use the “Inter Cell Spacing” but this does not affect the headers.

Thanks!

Use BorderFactory to create an empty border. ( See docs.oracle.com/javase/8/docs/a … ctory.html)
The example right-aligns header text and adds a 30px padding on the right. Use the code in the configureHeaderStyle extension function

[code]from javax.swing import SwingConstants
from javax.swing import BorderFactory

return { ‘border’: BorderFactory.createEmptyBorder(0, 0, 0, 30),
‘horizontalAlignment’: SwingConstants.RIGHT }[/code]

1 Like