Overlap Java Window with Native Window - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Overlap Java Window with Native Window


I am using JNA to get native access to my Win32 platform. I want to get a native window ownership over a Java Window by overlapping. I did not find any method to do it.

My search so far got:
* There is a native method called CreateWindowEx(...) but it creates me a new hWnd and not for my existing Java Window.
* Another option is to add my Java Window as a child, but then it will be clipped all the time.

All I need is that my Java Window is in the correct z-order and moved relatively with the native window, nevertheless what I do with it.

* Option: Create own Listener / Event -> but I think, there shall be a better native solution.

Best regards,
Sign In or Register to comment.