I was wondering if it would be possible to create a window using SWT that has either a transparent background or no background (i.e., just buttons and texts are shown floating).
I’ve tried using the setBackground() function like:
shell.setBackground(display.getSystemColor(SWT.TRANSPARENT));
but it will just show a window with a black background rather than a transparent one. any way to do this?
See How to Create Translucent and Shaped Windows (Java 7+).
Use Swing with the native PLAF.
Update 1
Me.
To which you replied.
And as an aside, that 3rd screenshot is actually the 2nd image ripped directly from the page that is linked in the 1st sentence of my reply (the same page where I got the above quote). Did you follow the link, read the page (look at the screenshots), try the working examples?