I am trying to program a small application but I would like the entire window to be glass with buttons and labels on top of it. Is it possible to do this within Java?
Assuming Java SWT and friends do not have built-in support for Windows Aero technology, you're going to have to call a native API via JNI. The native API you'll need to call is
DwmExtendFrameIntoClientArea(int windowHandle, MARGINS margins);
This native API is found in the DWMAPI.dll native library in Windows Vista and Windows 7, and is documented on MSDN.
There's lot of documentation on the web about how to call this function. For example, here's an article on doing this in C#. That should get you started.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With