I am writing an SWT application.
Is there a way to animate a label to make it glow in SWT?
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.
SWT uses the OS’s widgets. There are methods like
setForeground()andsetBackground(). However, it is not guaranteed, that the set colors will be used (they are just hints). In general: There is no built-in mechanism that will make yourLabelglow.As a workaround, add a
ListenerforSWT.Paintto yourLabel. On thisListener‘shandleEventmethod, get theEvent‘sGCand paint whatever you want with it: