This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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