Power table column width auto ajust?

I’m looking for a way to auto adjust power table’s columns width according column text contents

There is a post towards the bottom that might help you out.

I found this posted on the forum awhile ago (not mine, credit goes elsewhere) and put it in the table’s property change script. Perhaps it will lead you in the right direction:

if event.propertyName == 'data':
 	from com.jidesoft.grid import TableUtils
 	from javax.swing import JTable
 	table = event.source.parent.getComponent('Power Table').getTable()
1 Like