Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable Column Size

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic