Swing transparency using JNI
问题 I'm trying to create a simple Java application that displays a frame containing a JButton. I'm using JNI to add transparency to the window. The window is transparent but the button is not. Also, when I move the window the button doesn't move with the window. The same thing happens with a JLabel. If I use a Button instead of a JButton it works just fine. Native code: #include <windows.h> #include <jawt_md.h> #include <jawt.h> #include <jni.h> // Don't mangle names for the JVM extern "C" { BOOL