Re: Mac Canvas3D location bug
Posted by
Manu on
Jan 27, 2014; 12:10pm
URL: https://forum.jogamp.org/Mac-Canvas3D-location-bug-tp4030052p4031376.html
I just tried gluegen-2.1-b770 and jogl-2.1-b1213 with Java 3D 1.6-pre9 under Java 1.6.0_65, 7u40 and 7u60.
The location bug is gone. Great!

But once I close a window that contains a 3D canvas, the program still gets blocked some way, and as the following test shows, this is not bound to AWT EDT handling (but maybe it's the same bug as
this one?).
package com.eteks.sweethome3d.test;
import java.awt.EventQueue;
import java.awt.GraphicsEnvironment;
import javax.media.j3d.*;
import javax.swing.*;
import com.sun.j3d.utils.universe.SimpleUniverse;
public class Canvas3DDisposeTest {
public static void main(String [] args) throws InterruptedException {
EventQueue.invokeLater(new Runnable() {
public void run() {
// Create a canvas 3D displayed in a frame
GraphicsConfigTemplate3D gc = new GraphicsConfigTemplate3D();
Canvas3D canvas = new Canvas3D(GraphicsEnvironment.getLocalGraphicsEnvironment().
getDefaultScreenDevice().getBestConfiguration(gc));
new SimpleUniverse(canvas);
JFrame frame = new JFrame("Canvas3DDisposeTest");
frame.add(canvas);
frame.setSize(400, 400);
frame.setVisible(true);
JOptionPane.showMessageDialog(frame, "Frame will be disposed and shown again");
frame.dispose();
frame.setVisible(true);
JOptionPane.showMessageDialog(frame, "Frame was shown again");
}
});
}
}
Emmanuel Puybaret