Login  Register

Re: New tutorial on AWT/SWT/Swing/GLJPanel/GLCanvas

Posted by gouessej on Feb 01, 2011; 4:28pm
URL: https://forum.jogamp.org/New-tutorial-on-AWT-SWT-Swing-GLJPanel-GLCanvas-tp2363921p2398351.html

Actually, implementing my suggestion is not that hard. You need to implement a NEWT SWT canvas based on org.eclipse.widgets.Canvas, a NEWT SWT display based on the Display class of SWT, a NEWT SWT screen based on... I don't know?? and a NEWT SWT window using a Composite instance as a container, a NEWT SWT canvas and a Shell instance as a frame. The problem is that some methods are always called on the event dispatching thread which means that I have to use asyncExec to call SWT methods on the SWT dispatching thread. If someone else feels more comfortable than me to implement these classes, let us know.
Julien Gouesse | Personal blog | Website