All,
I am trying to change the font size inside a table based on a script. Is this possible? I get the error that it is a read only attribute, but I thought there was a way to change fonts in a table.
Thanks
All,
I am trying to change the font size inside a table based on a script. Is this possible? I get the error that it is a read only attribute, but I thought there was a way to change fonts in a table.
Thanks
That’s odd… setFont() and setHeaderFont() are public for both the regular table and the power table.
Both of the following worked for me:
table = event.source.parent.getComponent('Table')
table.font = table.font.deriveFont(16.0)
from java.awt import Font
table = event.source.parent.getComponent('Table')
table.font = Font('Dialog', 0, 12)
I was putting the code into a button on the same window as the table.