I'm really new to java programming therefore I apologize in advance if this sounds like a stupid question.

I'm using JNI to invoke C code by creating a Swing JFrame and displays it. The code is fairly simple, and the Java-code is working fine if I set frame visibility to false (i.e. the "hello" method is called) whereas when I set frame visibility to true, nothing happens(i.e. the "hello" method is not called)....