9 messages in net.java.dev.jna.usersRe: [jna-users] X11 and XNextEvent
FromSent OnAttachments
Benjamin BOUCHERAug 17, 2008 1:39 pm 
Stefan EndrullisAug 17, 2008 3:32 pm 
Stefan EndrullisAug 18, 2008 4:01 am 
Benjamin BOUCHERAug 18, 2008 5:39 am 
Stefan EndrullisAug 18, 2008 7:06 am 
Stefan EndrullisAug 30, 2008 7:36 am 
Benjamin BOUCHERAug 30, 2008 8:55 am 
Stefan EndrullisAug 30, 2008 12:19 pm 
Stefan EndrullisAug 31, 2008 12:04 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] X11 and XNextEventActions...
From:Stefan Endrullis (ste@endrullis.de)
Date:Aug 18, 2008 7:06:35 am
List:net.java.dev.jna.users

Yes, Sun has already implemented a complete X11 API in Java but the protection
of the package "sun" is just too good for me. I've tried to remove this protection according to
http://java.sun.com/developer/JDCTechTips/2001/tt0130.html, but it didn't work:
I got always an IllegalAccessError, even if my class was located in the same package as the
referenced X11 class and all security/policy files were adapted. I suppose Sun has hard-coded the package protection for "sun" in the VM.

Regards, Stefan

Benjamin BOUCHER schrieb:

Thanks, I'll ask him for the code or I'll implement it myself since I only need to capture mouse events...

Also, I don't know if it has something to do with JNA, but there's a package sun.awt.X11 with an XlibWrapper class that seems to wrap completely the Xlib, but not documented in the JAVA API, and unfortunately not visible.