Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Table Redraw problem
Table Redraw problem [message #446206] Sat, 20 November 2004 08:50 Go to next message
Ravi G. is currently offline Ravi G.Friend
Messages: 7
Registered: July 2009
Junior Member
Hi ,
i am facing a problem in redrawing a Table on the TableViewer. What i
a have here is a Some buttons on the table Items that have been set using
setData() on the TableItem. now when i remove anyone of the TableItems
using remove(int), the tableItem gets removed leaving the button behind.
I Did notice that if we scroll the tableViewer the button are redrawn
and the dangling buttons are removed. Now i am going wrong anywhere ?...
Or is there a way to emulate the scrolling effect from code ? This will
actually provide a work around to my problem .
Also i found the following post but had no solution in it. Please have
a look at the following. might explain the problem.

http://dev.eclipse.org/newslists/news.eclipse.tools/msg00830 .html


TIA
Gravi.
Re: Table Redraw problem [message #446233 is a reply to message #446206] Sun, 21 November 2004 20:34 Go to previous message
Martin Kersten is currently offline Martin KerstenFriend
Messages: 306
Registered: July 2009
Senior Member
> Hi ,
> i am facing a problem in redrawing a Table on the TableViewer. What i a
> have here is a Some buttons on the table Items that have been set using
> setData() on the TableItem. now when i remove anyone of the TableItems
> using remove(int), the tableItem gets removed leaving the button behind. I
> Did notice that if we scroll the tableViewer the button are redrawn and
> the dangling buttons are removed. Now i am going wrong anywhere ?... Or is
> there a way to emulate the scrolling effect from code ? This will actually
> provide a work around to my problem . Also i found the following post but
> had no solution in it. Please have a look at the following. might explain
> the problem.
>
> http://dev.eclipse.org/newslists/news.eclipse.tools/msg00830 .html

I am not sure but maybe it helps. Have a look at the TableEditor. It is
able to manipulate a cell within a table. Also a CellEditor might also help.

Bye,

Martin (Kersten)
Previous Topic:-> TableTreeViewer and CheckBoxCellEditor
Next Topic:Swing JPanel
Goto Forum:
  


Current Time: Fri Apr 19 04:13:03 GMT 2024

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

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

Back to the top