pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: Adding and removing columns in a TablePane
Date Tue, 17 May 2011 17:43:14 GMT
Removing a column does not remove the column's components. Rather, it has the effect of shifting
the column contents. In order to completely remove a column, you'll also need to remove the
corresponding component from each row.

On May 17, 2011, at 1:37 PM, lello wrote:

> Hi all,
> 
> I have implemented a small case in which I have a tablepane and I add
> programmatically several columns and rows. When I add components the
> tablepane is displayed correctly. However when I remove a columns the column
> is removed but its components are still there. 
> This is the tablepane after I have added all the components:
> http://apache-pivot-users.399431.n3.nabble.com/file/n2953384/tablepane_ok.png 
> and here is the tablepane after I remove the second column:
> http://apache-pivot-users.399431.n3.nabble.com/file/n2953384/tablepane_wrong.png 
> The labels get superimposed.
> 
> I am using: tablePane.getColumns.remove(1,1);
> 
> Any idea what is wrong?
> 
> Thanks
> 
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Adding-and-removing-columns-in-a-TablePane-tp2953384p2953384.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Mime
View raw message