I was thinking if there’s a way to apply a style like this onto a swt checkbox.
I looked for custom components, but didn’t found anything.
Thank you guys
I was thinking if there’s a way to apply a style like this onto
Share
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.
You can use the following:
Create a custom button with SWT
as a starting point. Within the
PaintListeneryou can paint the button in the way you want it to look.Here is a small example i just tried:
where
Icons.ONandIcons.OFFare the two images and WIDTH_OF_IMAGE and HEIGHT_OF_IMAGE are the width and height of the image you use.