Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How To Get Win32 Window Handle (WHND) for certain JFrame?

843829Feb 6 2005 — edited Dec 5 2007
Hi people!
I need to get win32 handle(WHND) for a certain jframe. EnumerateWindows and Findwindow will not fit because I may have many windows with same class name and title. and above mentioned win32 functions will return handle for only last opened window. I found somewhere in fourms that jawt will do the job. I even found the phrase: "Added support for JAWT.DLL which maps between Java
components and native window handles." at http://java.sun.com/products/accessbridge/CHANGES.txt. but i do not know how to use it. i've looked at header of jawt.dll but there is nothing like getHWND for JFrame .. JCLass or I don't know what. Someone in forum said that handling has changed from 1.3 to 1.4? what does it mean?
Please help me with this! I've been struggling with this for last two weeks. Any help will be appreciated. I'm using 1.4.2.

HOW TO GET HWND FOR JFRAME!!!!!

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2008
Added on Feb 6 2005
17 comments
2,458 views