Login  Register

Canvas3D resize problem

Posted by runiter on Feb 15, 2014; 7:30pm
URL: https://forum.jogamp.org/Canvas3D-resize-problem-tp4031602.html

In my gui shown below, there is a middle panel (table of values), which causes the canvas to be sized incorrectly whenever I make the table visible. (see how the left portion of canvas is greyed).

I tried calling repaint, invalidate, revalidate, resize on canvas and/or its parent to no avail. The only thing that worked was to remove canvas from parent jpanel and reinsert it. Although this worked in the stand-alone application, it completely hanged JVM in webstart. Is there anyway to force canvas to recalculate its position and size?

Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D