Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Understanding Nattable internal calls
Understanding Nattable internal calls [message #1597644] Mon, 02 February 2015 12:51 Go to next message
Shafi Vijapurwala is currently offline Shafi VijapurwalaFriend
Messages: 13
Registered: November 2014
Junior Member
I have a combo box containing icons where user can chose an icon in a cell. When the user selects an icon, I paint it in the appropriate cell.

The problem is, that the image appears, but only momentarily and then some repaints from nattable causes the image to disappear. The question is, where to write my image painting code so that it displays correctly?

Re: Understanding Nattable internal calls [message #1597646 is a reply to message #1597644] Mon, 02 February 2015 12:55 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2803
Registered: July 2012
Senior Member
If you want to show an image in a cell, you need to use the ImagePainter. Which image should be rendered depends on your configuration. Typically you need to register a label for the value you selected in the combobox and then register either an IStyle with the appropriate Image set, or register a specialized ImagePainter. I personally like the IStyle approach.
Previous Topic:Performance issue which large number of columns
Next Topic:Issue with tree model
Goto Forum:

Current Time: Tue Mar 09 05:18:16 GMT 2021

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

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

Back to the top