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
How to do DBTable column auto re-sizing printer friendly version
next newest post | next oldest post
Author Messages
jtu{@}ntlworld.com
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

What is the best way to auto resize the column width of DBTable when the container JPanel of frame resized? I can only think of passing the resizing event from JPanel to JTable but seems to be too cumbersome. Perhaps there is a smarter way?

Thanks for your help in advance... and marry Xmas...

admin{@}quicktable.org
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

You can try the following resize modes. This will decide how the columns will be resized when

JTable table = quickTbale.getTable();

table.setAutoResizeMode(mode);

Try one of the following modes
mode=
JTable.AUTO_RESIZE_OFF (Quicktable default)
JTable.AUTO_RESIZE_NEXT_COLUMN
JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS
JTable.AUTO_RESIZE_LAST_COLUMN
JTable.AUTO_RESIZE_ALL_COLUMNS

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