>>>>> Nathan Meyers writes:
Nathan> On Wed, Dec 01, 1999 at 07:47:00PM +0000, Ekkehard Kraemer wrote:
>> Hi,
>>
>> is it possible to access X things from native code via JNI?
>> E.g., paint in a X window direktly from native code?
Nathan> Yes, but....
Nathan> Java doesn't give you any way to discover the X resources
Nathan> used by the AWT... you can't get the Display pointer or
Nathan> the Window IDs of any of its windows. About all you can do
Nathan> is open your own connection to the X server (from the
Nathan> native code) and search the window hierarchy for what
Nathan> appear to be your application's windows.
Nathan> Sun has indicated that they plan to fix this someday...
The JDK 1.3 supports this:
http://java.sun.com/products/jdk/1.3/docs/guide/awt/enhancements.html#headers
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Porting Team
http://www.blackdown.org/java-linux.html
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]