• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

field length

 
Shengzhi Peng
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May i know how to specify the length of a column?
because some field is long,but some is short.I want to make the JTable just contain the column.
Thank you.
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the schema/generic columns from the controller, then got the column's max length from the column's as I iterated, and finally set the tableColumn's preferredWidth to maxLength X 3
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic