Skip to main content

resizing the window , losing the drawings

No replies
sumncc
Offline
Joined: 2008-06-19
Points: 0

Hi all ,
I am very new to this.

I am using J3d with my Swt program in eclipse. The problem is when I am resizing the window the drawings get lost. Could some one get me piece of code to place in a resize method so that when I resize the canvas the drawing will be resized too i.e the ratio will be the same -1 to +1? please.

I am tring
universe.getViewingPlatform().setNominalViewingTransform();
but this does not work on resize methiod.

please and thanks in advanse