Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How do I remove a TableColumn from a table
How do I remove a TableColumn from a table [message #443922] Mon, 04 October 2004 15:33 Go to next message
Eclipse UserFriend
Originally posted by: news0reader.hotmail.com

Hi, how do I remove a TableColumn from a table? I tried getting all
columns and then calling TableColumn::dispose()...but it did n't work, in
that when I add more columns to the table the old ones (the ones on which
I called dispose()) still remain.

Thanx

--A
Re: How do I remove a TableColumn from a table [message #443932 is a reply to message #443922] Mon, 04 October 2004 16:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: H.Drewes.web.de

Hello,
you can use table.remove(int index) to remove the TableItem with the
specified index. Unfortunately, I think there isn't a method like
table.remove(TableItem item), so if you don't know the index number of
your TableItem, there's possibly only the way to remove all items
with table.removeAll() and redraw the hole table. I actually did it
like this in a project of mine.

Holger


news wrote:

> Hi, how do I remove a TableColumn from a table? I tried getting all
> columns and then calling TableColumn::dispose()...but it did n't work, in
> that when I add more columns to the table the old ones (the ones on which
> I called dispose()) still remain.
>
> Thanx
>
> --A
>
Re: How do I remove a TableColumn from a table [message #443935 is a reply to message #443922] Mon, 04 October 2004 17:00 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
TableColumn.dispose() should work. What platform are you using? Can you
give a code example that fails?

"news" <news0reader@hotmail.com> wrote in message
news:cjrqgj$s6a$1@eclipse.org...
> Hi, how do I remove a TableColumn from a table? I tried getting all
> columns and then calling TableColumn::dispose()...but it did n't work, in
> that when I add more columns to the table the old ones (the ones on which
> I called dispose()) still remain.
>
> Thanx
>
> --A
>
Re: How do I remove a TableColumn from a table [message #443937 is a reply to message #443932] Mon, 04 October 2004 17:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: news0reader.hotmail.com

Holger,

Thanx for the response, but as far as I know a TableItem is a "table row,"
whereas I want to remove a TableColumn, a column.

--A

"Holger Drewes" <H.Drewes@web.de> wrote in message
news:cjru5k$4f2$1@eclipse.org...
> Hello,
> you can use table.remove(int index) to remove the TableItem with the
> specified index. Unfortunately, I think there isn't a method like
> table.remove(TableItem item), so if you don't know the index number of
> your TableItem, there's possibly only the way to remove all items
> with table.removeAll() and redraw the hole table. I actually did it
> like this in a project of mine.
>
> Holger
>
>
> news wrote:
>
> > Hi, how do I remove a TableColumn from a table? I tried getting all
> > columns and then calling TableColumn::dispose()...but it did n't work,
in
> > that when I add more columns to the table the old ones (the ones on
which
> > I called dispose()) still remain.
> >
> > Thanx
> >
> > --A
> >
Re: How do I remove a TableColumn from a table [message #443945 is a reply to message #443935] Mon, 04 October 2004 21:21 Go to previous message
Eclipse UserFriend
Originally posted by: news0reader.hotmail.com

Veronika,

Yes, it should work...and in a pared-down example I wrote to post here it
*does* work. So my problems must lie elsewhere. Let me investigate some
more.

Thanx

--A


"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:cjrv9e$6md$1@eclipse.org...
> TableColumn.dispose() should work. What platform are you using? Can you
> give a code example that fails?
>
> "news" <news0reader@hotmail.com> wrote in message
> news:cjrqgj$s6a$1@eclipse.org...
> > Hi, how do I remove a TableColumn from a table? I tried getting all
> > columns and then calling TableColumn::dispose()...but it did n't work,
in
> > that when I add more columns to the table the old ones (the ones on
which
> > I called dispose()) still remain.
> >
> > Thanx
> >
> > --A
> >
>
>
Previous Topic:org.eclipse.swt.custom.ViewForm , ToolBar and JFace Action
Next Topic:Unhandled event loop exception.....
Goto Forum:
  


Current Time: Thu Mar 28 15:39:16 GMT 2024

Powered by FUDForum. Page generated in 0.03435 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top