wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes field length Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "field length" Watch "field length" New topic
Author

field length

Shengzhi Peng
Greenhorn

Joined: Jun 16, 2005
Posts: 10
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

Joined: Mar 26, 2002
Posts: 442
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
 
jQuery in Action, 2nd edition
 
subject: field length
 
Similar Threads
Query returs empty list but getting results in TOAD
sorting a file with string/int fields
length field on array ...
findByCriteria
Asmt 1.6 Nit Picking Comment