JTable column width autofit

H

hilz

Hi all
does anyone know of a way to implement the autofitting of column widths in
JTable?
Something similar to what they do in M$ Excel ?

i would like for the user to be able to click somewhere on the column
headers (maybe in the corner of the table) and have the all columns
automatically resize to the largest text in each column.

if anyone has any sample code that they can share, i would appreciate it.

thanks
hilz.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top