From: Dale B. <dr...@cs...> - 2003-08-18 18:48:17
|
On Mon, 18 Aug 2003, Kenneth B. Russell wrote: > > > I've been trying for a while to use the X11HandleAccess class to retrieve > > the window handle, but haven't been able to get it to work. > > > > I'm using Sun's Java version 1.4.2 on Redhat 9. Any help would be greatly > > appreciated. Thanks. > > JDK 1.4 changed how the native window handle is represented in > the Sun-internal code and the older reflective techniques now no > longer work. It is necessary to use the JAWT for portability. Thanks, I wasn't aware of that. > Regardless, it shouldn't be necessary to fetch the underlying > window handle as there isn't a lot you can usefully do with it, > at least from Java. I need to retrieve the drawable for integration with some other applications. I'm using Chromium for distributed rendering, and I need to get the drawable to that Chromium can render into the window put up by the Java app. Everything should work out if I can just get the window handle. > You may want to check out JOGL, http://jogl.dev.java.net/ , which > has some newer functionality than GL4Java exposes and also > happens to have all of its internals written in Java for easier > tinkering. Thanks for the quick response, I'll check this out as well. Dale |