On 21 Dec 2006 04:14:36 -0800,
wrote:
> i need some suggestion.... could u please tell me how can i pass a
> signal (for example, by the button click) from java to C . (C added
> with java through JNI thread)..
Are you asking how to do "button clicks", or how to do JNI?
For the former, read about event handling in the Swing tutorial.
For the latter, realize that there is no functional difference between
pure Java methods and native methods. Wherever you can invoke a Java
method, you can invoke a native method instead.
Define a class that implements ActionListener. Call a C method from
the actionPerformed() method. Or declare a native actionPerformed()
and implement it in C.
/gordon
--
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e