Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB0694963 for ; Tue, 17 May 2011 17:43:54 +0000 (UTC) Received: (qmail 21855 invoked by uid 500); 17 May 2011 17:43:54 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 21838 invoked by uid 500); 17 May 2011 17:43:54 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 21830 invoked by uid 99); 17 May 2011 17:43:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 17:43:54 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gk_brown@verizon.net designates 206.46.173.5 as permitted sender) Received: from [206.46.173.5] (HELO vms173005pub.verizon.net) (206.46.173.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 17:43:47 +0000 Received: from [192.168.1.15] ([unknown] [98.110.173.176]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LLC001W8P828Q4G@vms173005.mailsrvcs.net> for user@pivot.apache.org; Tue, 17 May 2011 12:43:15 -0500 (CDT) Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Apple Message framework v1084) Subject: Re: Adding and removing columns in a TablePane From: Greg Brown In-reply-to: <1305653831717-2953384.post@n3.nabble.com> Date: Tue, 17 May 2011 13:43:14 -0400 Content-transfer-encoding: quoted-printable Message-id: References: <1305653831717-2953384.post@n3.nabble.com> To: user@pivot.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org 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, >=20 > 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.=20 > This is the tablepane after I have added all the components: > = http://apache-pivot-users.399431.n3.nabble.com/file/n2953384/tablepane_ok.= png=20 > and here is the tablepane after I remove the second column: > = http://apache-pivot-users.399431.n3.nabble.com/file/n2953384/tablepane_wro= ng.png=20 > The labels get superimposed. >=20 > I am using: tablePane.getColumns.remove(1,1); >=20 > Any idea what is wrong? >=20 > Thanks >=20 > -- > 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.