• Post Reply Bookmark Topic Watch Topic
  • New Topic

handle to a frame  RSS feed

 
Cathal Courtney
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am working with jdk 1.4 and I'm trying to get a window handle to a frame. I have this working using jdk 1.3 using DrawingSurfaceInfo but this is not supported with 1.4. I have also tried...
sun.awt.SunToolkit tk = (sun.awt.SunToolkit)Toolkit.getDefaultToolkit();
int hwnd = tk.getNativeWindowHandleFromComponent(component);

Does anyone know how to do this???
Thanks
Cathal
 
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
JAWT (of which DrawingSurfaceInfo is a part) most certainly is part of JDK 1.4. The same native code that works under 1.3 should work just fine under 1.4. If you're having problems, it's probably just a PATH/installation thing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!