Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

In JNI (C++ code) how get reference to JWindow's hwnd?  RSS feed

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I get control/reference to the HWND that is backing a JWindow in JNI?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The thing you want to use is called "JAWT". Here's a handy article, the one I originally learned about this stuff from.
 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ernest Friedman-Hill:
The thing you want to use is called "JAWT". Here's a handy article, the one I originally learned about this stuff from.


Awesome! Thanks, that looks like it and the great thing is it appears to be "cross-platform" of a solution too (obviously I'd be writing windows-specific code in the c++ but you can also do it for solaris, etc too using almost the same code from jawt).
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!