• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable and TableColumn

 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

There has to be a very simple answer to this. I have 4 columns in my JTable and I want them all to start with differing widths. But I want them all to be resizable to any width after startup.



The only way that I have been able to get the columns to start at the desired widths is to use the setMaxWidth() method, but then I can't resize them beyond this width of course. I have tried setPreferredWidth() which allows me to resize columns, but at startup all the columns are evenly spaced which is not what I desire.

Any help would be appreciated.

Cheers, Jared.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!