I am trying to create a fullscreen window that cover the whole screen using Java. This window must also have some transparency (about 30%-50% transparent). When saying whole screen, I do mean it cover everything (including the dock/taskbar/menubar in OSX/Linux/Windows), and when I say with transparancy, I mean a real-time transparancy and not just a hacked screenshot. Here is what I am aware-of/tried:
- Using Java Fullscreen API: while it creates a true fullscreen, you cannot have some transparency with it (only opaque color). One hack is to take a screenshot of the whole desktop and set it as background for the window, but this mean it is not real-time transparency.
- Setting window size to match screen dimension: while it fills the whole screen, in certain OSes (e.g. Mac OS X) the window will be rendered behind the dock/menubar, and not above it. However, transparency do work here.
- Using setWindowOpacity API: it work in the second case, but not in the first (Fullscreen API)
- Using setBackground with alpha: it work like the setWindowOpacity, but only in certain OSes. But also doesn't work with Fullscreen API.
- Use JFrame/JWindow/JDialog/Frame/Window: tried every window model I could, without any luck
So I am asking if this is possible through a another hack that I am not aware of, then I would be happy to hear about.
The goal is to overlay a semi-transparent fullscreen over the desktop.
.
.
or by using
brutte_force
toDirectX
freezed my PC twicw, only power_off to save PC's GPU