• Post Reply Bookmark Topic Watch Topic
  • New Topic

String manipulation with colors  RSS feed

 
Nitin Kumar Goyal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to add a string like "* Preferred" in SWT combo control. Could i play with colors in string.

Could any one please help me for this.

Thanks in advance,
Nitin
 
Rob Spoor
Sheriff
Posts: 20892
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Swing you would use a custom ListCellRenderer. Possibly SWT has something similar.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!