Hi everyone! I wrote some java code using JNI and also dll for it in C.
Everything worked fine untill I got a job to generate some events. I
have to generate some event in C like "key down", then to call Java
function to react like print some text. I followed the Desktop
Indicator example but could not do anything usefull. I think I don't
understand that example as well. Does anyone have some similar example?
I'll be gratefull for any help or advice.
>I got a job to generate some events. I
>have to generate some event in C like "key down", then to call Java
>function to react like print some text.
C can call Java. C might call a Java method to create the synthetic
event and enqueue it or it might call the event handler directly.
see http://mindprod.com/jgloss/event11.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
ginjasvinja - 14 Dec 2005 07:33 GMT
I am not sure that I illustrated my problem as well. I have to call
native method to register event. In C I have to create window that will
register my event. When created window notice the event I have to call
Java function which can be only one line, like:
System.out.println("Key down\n");
So the most of work I have to do in C. The Desktop Indicator example
does something like that but I think I need some simpler example.