Re: Jogl and SWT
Posted by
gouessej on
Dec 05, 2013; 9:56am
URL: https://forum.jogamp.org/Jogl-and-SWT-tp4030775p4030776.html
Hi
You can use JOGL with Swing and SWT. Swing is better supported in JOGL than SWT but SWT has been improved as time goes by and we have a dedicated contributor for it. I used SWT (+ Eclipse RCP) with JOGL by using the AWT SWT bridge for years; now you have a lot more options, you can use the heavyweight JOGL SWT canvas or NewtCanvasSWT.
Actually, JOGL isn't the problem. If you switch from C++, rather spend much time in choosing the GUI API that fits the best into your needs. Eclipse RCP + SWT and Netbeans Platform + Swing have pros and cons. It depends on what you would like to do. Memory management is less painful and the APIs are a lot more flexible with Netbeans Platform + Swing, there are a lot of tutorials about Swing but a few good ones about Netbeans Platform whereas the community using Eclipse RCP seems larger than the one using Netbeans Platform. SWT heavily relies on the OS which can be really good for native integration but very time consuming for cross-platform development. SWT is less reliable than Swing under Unix and GNU Linux, some bugs have never been fixed whereas they have been reported more than 7 years ago, for example in the drag and drop of images. Good luck.