Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make entire window aero glass in Java?

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?

like image 300
Alex Avatar asked Dec 22 '22 07:12

Alex


1 Answers

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.

like image 70
Judah Gabriel Himango Avatar answered Jan 07 '23 16:01

Judah Gabriel Himango