[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JTable columns



Hi Jason,

use a TableModel and a TableColumnModel with your
JTable. See the attached sample code (edit all cells
of one column with an empty string and the column will
disappear).

Best regards,
   Oliver.

 --- "Jason R. Kretzer" <jason@OpinionOne.com>
schrieb: > Hello all,
> 
> I have a JTable with columns that represent days of
> the week.  In each column are rows with data.  I
> would like to be able to get rid of any columns that
> have no data.  I would like to do this after the
> fact.  Any ideas on how I can do this?
> 
> thanks!
> 
> -Jason
>  
>
************************************************************************************
> Jason R. Kretzer                                
> Software Engineer                            
> Opinion One
> Email:  jason@opone.com
> Phone:  (513) 361-2771
> Website:  http://alia.iwarp.com
>  
> "Make visible what, without you, might perhaps never
> have been seen."
> --Robert Bresson
>
************************************************************************************
>  

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Ihre E-Mail noch individueller? - http://domains.yahoo.de

TableTest.java

MyTableModel.java