• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable column width

 
Nandini Sriram
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a problem setting col widths in JTable. When I use setPreferredWidth(int width), it works fine. But when I try to hardcode it in the FieldInfo array, it's not changing from default. I have set the auto resize mode 'off'.
Please help.
Thanks
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!