Currently, GLCanvas and GLJPanel skip setSurfaceScale(..) if the AWT/Swing component or the drawable backend is not yet realized. Implementation shall earmark and validate the requested pixel-scale, so it can be used at realization (1st display, visibility).
(In reply to comment #0) > Currently, GLCanvas and GLJPanel skip setSurfaceScale(..) if > the AWT/Swing component or the drawable backend is not yet realized. This is only true for GLJPanel, i.e. after addNotify() and 1st display/realization. > > Implementation shall earmark and validate the requested pixel-scale, > so it can be used at realization (1st display, visibility).
In Jzy3d, I noticed the same behaviour for NewtCanvasAWT on MacOS 10.8.5 and 10.9. We are using it as follow : https://github.com/jzy3d/jzy3d-api/blob/master/jzy3d-api/src/awt/org/jzy3d/plot3d/rendering/canvas/CanvasNewtAwt.java Details here : https://github.com/jzy3d/jzy3d-api/issues/44
a372a5db4e9c2d56545791a5a2233a5cdbd94523 - Bug 1102: GLJPanel.setSurfaceScale(..) Allow setting non-initialized GLJPanel surface scale. TODO: More tests and probing before initialization.
(In reply to comment #2) > In Jzy3d, I noticed the same behaviour for NewtCanvasAWT on MacOS 10.8.5 and > 10.9. > > We are using it as follow : > https://github.com/jzy3d/jzy3d-api/blob/master/jzy3d-api/src/awt/org/jzy3d/ > plot3d/rendering/canvas/CanvasNewtAwt.java > > Details here : > https://github.com/jzy3d/jzy3d-api/issues/44 IMHO this is a different issue. Please copy info and file a new bug, thx.