 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
csdev Guest
|
Posted: Tue Jun 15, 2004 8:48 pm Post subject: table columns not resizable |
|
|
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.
|
|
| Back to top |
|
 |
Kleopatra Guest
|
Posted: Wed Jun 16, 2004 8:44 am Post subject: Re: table columns not resizable |
|
|
csdev wrote:
| Quote: |
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
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|