Login  Register

Re: Javafx causes jogl problem in mac

Posted by runiter on Mar 07, 2013; 3:01pm
URL: https://forum.jogamp.org/Javafx-causes-jogl-problem-in-mac-tp4028417p4028538.html

gouessej wrote
Maybe you can try to call getNewtWindow().display() just after setVisible(true) in init().
Nope this didn't work either.
But I managed to get it to work if I add a Thread.sleep(1000) before calling framehandler.init() in my SceneManager.java:

        public synchronized void run() {
                        try {
                                Thread.sleep(1000);
                        } catch (final InterruptedException e1) {
                                e1.printStackTrace();
                        }
                frameHandler.init();
                ...
         }

Obviously this is not a good solution because the 1000ms sleep time may need to be more or less depending on the speed of computer. But it may help figure out the source of the problem.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D