In Java SWT, is there a way to draw text on a transparent shell so that only the text appears visible? What I would like to do is have the text appear on my desktop without any background window. Using shell.setAlpha() will make the entire shell transparent, including any elements that appear on it (which I am trying to avoid).
Share
Here’s an example displaying an image without the shell. You can fairly easily adapt it to display text.
Update:
OK I got bored. Here’s a basic example that paints “Hello” on a transparent background: