dcsimg
can i use jni with swing
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   william_dsilva
Posted On:   Friday, March 17, 2006 01:16 AM

hello i'm doing a project wherein i've proposed to use java swing as the interface and C as the main code is it possible...please reply...thanks

Re: can i use jni with swing

Posted By:   Robert_Lybarger  
Posted On:   Thursday, April 6, 2006 09:00 PM

since Swing is a presentational thing only and JNI is mainly a way to call routines written in other languages, the short answer is yes. The long answer is that using a *LOT* of JNI will quickly cause all but the bravest soul to run far, far away. You'd be highly recommended to clearly define one single java utility class that acts as a mediator between the two sides of the JNI world, mainly to cut down on getting the stubs generated and compiled into your native app and keep the "hair tearing" bits isolated.
About | Sitemap | Contact