I am using following line on my Eclipse RCP project:
item.setForeground(3, dis.getSystemColor(SWT.COLOR_RED));
Is there any reason that I don’t get the color changed? I just one particular cell to have red foreground.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using Eclise-rcp try this one
Note:
iis the index of the table item which you want to change the color.if you want to change the color of particular cell of particular item the code is