0

How would I resize the column for it to just fit the largest string in that column. For example in one column I might have a word like "Monday" and I want this column to be shorter than the "Wednesday" column.

The data changes often as it shows the next 3 days, so I would want Java to automatically change it depending on the input data rather than me having to manually set the column width.

My JTable is within a JScrollPane if that changes anything

Hope that makes sense. Please point me in the right direction.

TheRapture87
  • 1,403
  • 3
  • 21
  • 31

0 Answers0