Login  Register

Re: Cannot set minimum size for NewtCanvasAWT

Posted by runiter on Jun 18, 2015; 1:59pm
URL: https://forum.jogamp.org/Cannot-set-minimum-size-for-NewtCanvasAWT-tp4034732p4034736.html

gouessej wrote
Actually, there is no notion of minimum size in NEWT as far as I know, maybe Sven can confirm.
As a workaround I can force the minimum size by keep resetting it in the resize event function. And it works so I know NEWT is capable of it. But the workaround is ugly so someone just needs to delete the calls to setMinimumSize() in that updateLayoutSize() method and I think it will work nicely.

Xerxes Rånby wrote
If you set the size of your attached GLWindow then the NewtCanvasAWT
will use the same size as its minimum size.
I tried the following but it didn't work. Looks like GLWindow size keeps getting recalculated.

canvas.getNEWTChild().setSize(100, 100);
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D