Using Java 7 window translucency on Windows XP SP3, Vista, 7, 8 and Mac OS X Mountain Lion works great. However, on Linux I cannot get it to work properly.
Using the tutorial found here, specifically the GradientTranslucentWindow example, it seems to work great. But if you change the color to something other than white (the only change I made was set R to 0 in the example code), the frame does not composite correctly:
The isWindowTranslucencySupported
method returns true for PERPIXEL_TRANSLUCENT
. I'm running Ubuntu 12.04 LTS 32bit with Compiz composite manager with the Composite plugin turned on.
Questions:
VirtualBox was indeed the issue (even with guest add-ons). Running a non-vm'ed Ubuntu with proprietary graphics card drivers allows the sample to work as expected.