Re: JNI C++ importatn process
- From: Thomas Fritsch <i.dont.like.spam@xxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 17:35:55 GMT
Marcelo wrote:
NOOOO! With SwingUtilities.invokeLater you tell Java to call greatC++() from the GUI(!) thread. Hence the GUI will be blocked as long as it runs greatC++().because it is inside a GUI should I use a SwingUtilities ?
javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { greatC++(); } });
Instead you want greatC++() to be called by ANOTHER thread. Create a new Thread and then start it by yourself.
I recommend reading a good text-book (or the Java tutorial) about the Thread and Runnable stuff.
--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')
.
- References:
- Re: JNI C++ importatn process
- From: Andrew Thompson
- Re: JNI C++ importatn process
- From: Marcelo
- Re: JNI C++ importatn process
- Prev by Date: JLayeredPane possible in BorderLayout.CENTER ?
- Next by Date: Re: ExceptionInInitializerError: NullPointerException
- Previous by thread: Re: JNI C++ importatn process
- Next by thread: a swing component on top of another
- Index(es):