how can I make the table header width that fits only text? Means table column header width varies as name of the columns.
Check out the Table Column Adjuster. You can set the width of each TableColumn to be based on the text: