Pramod Yadav
Pramod Yadav

Reputation: 245

autofit table header width as text in java

how can I make the table header width that fits only text? Means table column header width varies as name of the columns.

Upvotes: 0

Views: 1401

Answers (1)

camickr
camickr

Reputation: 324088

Check out the Table Column Adjuster. You can set the width of each TableColumn to be based on the text:

  1. in the header
  2. in the row data
  3. in the header and the row data

Upvotes: 2

Related Questions