• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTable and TableColumn

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic