craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > General QuickTable Support/Help Post New Topic   Post A Reply
Wordwrap when refreshing using using Object[][] doesn't work printer friendly version
next newest post | next oldest post
Author Messages
converge
Corporal

Gender: Unspecified
Location:
Registered: Apr 2004
Status: Offline
Posts: 28

Click here to see the profile for converge Send email to converge Send private message to converge Find more posts by converge Edit or delete this message Reply w/Quote
Posted Wednesday, August 15, 2007 @ 10:52:35  

If I refresh a table using a RecordSet, string fields too long for the cell width will wordwrap to the next line. However, if I refresh the table using an Object[][] that was created from the same RecordSet, string fields too long will not wordwrap. So my fix was to run a setType(Types.LONGVARCHAR) on the string field. This make the field correctly use a wordwrap. Unfortunately this method also causes the fields to not display ellipses ("...") when the data is truncated.

So my question is: how do I have a string field wordwrap when it's too long but also display an ellipse if the column is resized and the data is truncated, when refreshing using an Object[][]?

[Edit by converge on Wednesday, August 15, 2007 @ 10:59:53]

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Thursday, August 23, 2007 @ 19:25:55  

whenever LONGVARCHAR type is used for a column ellipse will not be shown. Probably when you used JDBC the type is VARCHAR.

If this is really critical, you can easily create a CellComponent using texarea which can show the ellipse and then assign using Column.setUserCellRenderer(CellComponent)

Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios