Login  Register

Re: Advantages of using NEWT vs GLCanvas

Posted by gouessej on Feb 02, 2012; 8:49am
URL: https://forum.jogamp.org/Advantages-of-using-NEWT-vs-GLCanvas-tp3703674p3709336.html

Hi Travis

As I already said, fullscreen support is broken in AWT on some operating systems. Therefore, as GLCanvas relies on AWT, fullscreen won't work with it everywhere. Transparency support is possible with AWT by using a temporary API in Java 1.6 and with another API in Java 1.7. Look at com.sun.awt.AWTUtilities. However, this helper might not work on some operating systems or with OpenJDK.

http://stackoverflow.com/questions/1416869/how-to-distribute-awtutilities
http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/

NEWT is "only" a native windowing system, it has nothing to do with the support of graphics cards except that GLJPanel uses some OpenGL features that might not be supported on some hardware. NEWT is a complementary feature, not a replacement of the heavyweight existing canvas (AWT GLCanvas and SWT GLCanvas). Best regards.
Julien Gouesse | Personal blog | Website