• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

JTable Column Size

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am creating an application, that displays a JTable and
a JTextField among other things. A user can select a column
and then type in a size for that column.
I know that my code is getting the correct size. However the column never displays itself correctly. EX: A column with a
size of 20 characters does not display 20 characters.
I am using AbstractTableModel, and a TableColumn to handle
everything. The amount of code that I have is to large to
include in a message, but I will anyone the code if they wish.
I am using setAutoResizeMode(JTable.AUTO_RESIZE_OFF) so
that I can handle that column sizes manually.
Any suggestions would be helpful.
Fernando
 
Your mother was a hamster and your father was a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic