Re: Odd error on linux with NewtCanvasAWT
Posted by
Sven Gothel on
Jul 02, 2012; 8:52am
URL: https://forum.jogamp.org/Odd-error-on-linux-with-NewtCanvasAWT-tp4025367p4025373.html
On 07/02/2012 12:02 AM, Agnes [via jogamp] wrote:
> Hi,
>
> I have the following code that works correctly the first time it is called:
>
> private GLWindow canvas;
>
> private NewtCanvasAWT newtCanvas;
>
> private JFrame frame;
>
> public void show() {
> GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GL2));
> canvas = GLWindow.create(caps);
>
> newtCanvas = new NewtCanvasAWT(canvas);
> frame = new JFrame("A Name");
> frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
> frame.setSize(960,640);
> frame.add(newtCanvas);
> frame.setVisible(true);
>
> canvas.addGLEventListener(this);
> animator = new Animator(canvas);
> animator.add(canvas);
> animator.start();
> ...
> }
Dear Agnes,
can you pls provide a complete test case ?
Also pls provide more information as described in our Wiki (-> FAQ/Bugreport),
you can also search the forum for 'bugreport' if you feel unsure.
Thank you ..
~Sven