The table column width eas added automatically adjust settings

  1. Set table width is automatically adjusted to where the whole panel width
KDTable table=new KDTable();
table. setAutoResize (boolean);
Note: This function is enabled after the freeze, will fail.
  1. Mouse set automatically adjusted to adjust the width of the table column width after the other width adjusting a column.
table. setColumnsAutoResizeMode (int)
Parameters can have five values:
AUTO_RESIZE_OFF : This function is turned off
AUTO_RESIZE_NEXT_COLUMN : only automatically adjust the next column
AUTO_RESIZE_SUBSEQUENT_COLUMNS : automatically adjusts all columns to the right
AUTO_RESIZE_LAST_COLUMN : only the last one auto
AUTO_RESIZE_ALL_COLUMNS : Only automatically tune all the columns
Note: This function is enabled after the freeze, will fail.

Guess you like

Origin www.cnblogs.com/luojiabao/p/10964318.html