table columns not resizable

  • Follow


Hi All,

I can make an invisible column visible again using the following code.
But this newly visible colum is not resizable anymore..I wonder why..

int width = 50;
resultTable.getColumnModel().getColumn(index).setMinWidth(width);
resultTable.getColumnModel().getColumn(index).setMaxWidth(width);
resultTable.getTableHeader().getColumnModel().getColumn(index).setMinWidth(width);
resultTable.getTableHeader().getColumnModel().getColumn(index).setMaxWidth(width);
resultTable.getColumnModel().getColumn(index).setResizable(true);
resultTable.getTableHeader().getColumnModel().getColumn(index).setResizable(true);


Thanks,
Cathy.
0
Reply csdev1978 (15) 6/15/2004 8:48:02 PM


csdev wrote:
> 
> Hi All,
> 
> I can make an invisible column visible again using the following code.
> But this newly visible colum is not resizable anymore..I wonder why..
> 
> int width = 50;
> resultTable.getColumnModel().getColumn(index).setMinWidth(width);
> resultTable.getColumnModel().getColumn(index).setMaxWidth(width);

because TableColumn guarantees:

minWidth <= width, prefWidth <= maxWidth

Greetings
Jeanette

0
Reply Kleopatra 6/16/2004 8:44:05 AM


1 Replies
408 Views

(page loaded in 0.052 seconds)

Similiar Articles:













7/15/2012 8:44:28 AM


Reply: