[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Change background image

Hi guys,

I have a RCP application that I want to change some control's background image on the fly. I tried control.setBackgroundImage(image); The new image appeared on the control. However, when I resize the rcp application, the view that contains the control(a table) loss focus and the previous image appears again... I then tried:

	control.getBackgroundImage().dispose();
        control.setBackgroundImage(image);

However non of the two images are showing up any more... Can somebody show me the correct way to switch background colour and background image on the fly(It is already showing)?

Thank you in advance,
Lan