Login  Register

Re: small drawing

Posted by philjord on Jul 06, 2016; 9:05am
URL: https://forum.jogamp.org/small-drawing-tp4036875p4036880.html

Keith,
It looks like the first thing to ensure is that this is not just purely the swt layout failing.

So it would be good to post some information about how you can show it's related to JoglNewtSwtCanvas specifically not just any component that's added, so perhaps an example showing a blue colored Canvas alone with no Jogl in it at all.

So replace these line with a boring canvas and show the image of the screen being filled as you want, (or if not make it so it does and test Jogl again)

example._canvas = new JoglNewtSwtCanvas(settings, canvasRenderer, joglComp, SWT.NONE);
example._canvas.setLayout(new FillLayout());

Next thing is that this issue is not related to Java3D at all but in fact Jogl itself, these are 2 different things, one built on the other. I suspect a forum admin will move this issue across to Jogl at some point.

Finally the sscce Julien refers to needs to be so simple that anyone on the forum who wants to help can just paste the sample code into eclipse with a few clicks and run it and get the same issue.

So that generally means you need a single class of code showing the issue (like you have) but all the code required to show it, and as much setup instruction as you can give (many paragraphs is good).

Once you do that generally you'll get a quick response from someone who can help, or tell you what to do next.

Phil.