InterviewSolution
| 1. |
How To Use Newt With Multiple Windows & Threads? |
|
Answer» Newt is capable of handling multiple threads and windows. For best performance, you may CREATE one THREAD per window, if POSSIBLE. Below you see the invocation of the ES2 RedSquare jogl-demos UTILIZING multiple threads.
The serialization of the main Java class through com.sun.javafx.newt.util.MainThread may be used for all platforms, since it only takes effect on MacOSX. This ALLOWS you an almost platform independent invocation of your multithreaded Java applications. Newt is capable of handling multiple threads and windows. For best performance, you may create one thread per window, if possible. Below you see the invocation of the ES2 RedSquare jogl-demos utilizing multiple threads. The serialization of the main Java class through com.sun.javafx.newt.util.MainThread may be used for all platforms, since it only takes effect on MacOSX. This allows you an almost platform independent invocation of your multithreaded Java applications. |
|