Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Make table column invisible  RSS feed

 
Cathy Song
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

The following code make the column invisible, but
also removes it from the model.

table.getColumnModel().removeColumn(table.getColumnModel().getColumn(0));

How can I make the column invisible, but *not* remove it from the model,
because I need to obtain the data from the invisible column later on.

Also, this is not working, since when I increase column width by dragging I can see some dots and the coumn becomes partially visible:
TableColumn idClmn= table.getColumn("Property id");
idClmn.setMaxWidth(0);
idClmn.setMinWidth(0);
idClmn.setPreferredWidth(0);

Thanks,
Cathy.
[ June 11, 2004: Message edited by: Cathy Song ]
 
Eric Snell
Greenhorn
Posts: 28
Java Mac MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the header table column size to 0 as well.

 
Cathy Song
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Eric.

-Cathy.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!