Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT: IColorProvider  RSS feed

Aleksander Popov
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have MyLabelProvider that extends LabelProvider and implements IColorProvider. I overwrite getBackgroundColor in MyLabelProvider:

Now isn't it that if I implement IColorProvider interface and overwrite getBackground and getForeground then the elements of the list should take on the colors that I am returning?

[ April 05, 2006: Message edited by: Aleksander Popov ]
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!