Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we change the default selection color of setSelection() in jface

 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanna to highlight a specific node of a tree viewer while clicking on one button. For this I'm using the setSelection method of jface's tree viewer. It works but with default highlighting color. Is there any option to change the background or foreground color of specific node in jface tree viewer. I'm using the following code to highlight a specific node.



Any ideas to changing the background or foreground color of specific node in tree viewer or any option to change the background color of default highlighted selection...?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic