Test GUI with JNI (Java and C++ together)