Login  Register

Re: Resize of a JCanvas3D

Posted by Sven Gothel on Jan 22, 2013; 12:21pm
URL: https://forum.jogamp.org/Resize-of-a-JCanvas3D-tp4027842p4027975.html

On 01/18/2013 09:01 PM, Andreas [via jogamp] wrote:
> I found the answer for the GLCanvas problem. There is an if statement
> "Beans.isDesignTime()" in line 1086 of the GLCanvas which was true for my
> Netbeans runs and the GUIBuilder. So it returns a null
> AWTGraphicsConfiguration for the chooseGraphicsConfiguration method. If I set
> Beans.setDesignTime(false); before the GLCanvas is started everything works fine.

Sorry .. I am not very familiar w/ this NB and 'Beans.isDesignTime()' semantics.

Is it possible to have a test case w/o NB (and Java3d)
exposing the problem ?

Do I understand you right that the 'Beans.isDesignTime()' introduces
erroneous behavior into GLCanvas?

>
> So the answer for the resize test is Canvas3D is resized correctly, GLCanvas
> is resized correctly
(with your 'hack' only?)
> but the JCanvas3D not.

.. would need a Beans/designTime hack ?

~Sven

--
health & wealth
mailto:[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; fax : +49 (471) 4707741
Timezone CET: PST+9, EST+6, UTC+1


signature.asc (911 bytes) Download Attachment