Comment

Comment by fayten

I'm a big fan of using plain SWT[1] without JFace. In fact GTK4 support is already being work on!

I tend to see a lot of developers think of Eclipse Platform UI/JFace[2] when they see SWT. Eclipse Platform UI is Eclipse's abstraction over SWT that allows them to make consistent components across platforms. SWT is lighter weight and it's just platform native components. Also since you are dealing with native components you get easy access to platform accessibility.

Eclipse has some great documentation for the platform as well as loads of snippets[3] and examples[4] to pick apart.

There is also an incredibly useful charting library[5] that is used heavily by OpenChrom(Uses Eclipse platform)[6].

I have only tried it with some small samples, but SWT does work with GraalVM native-image[7]. This should allow you to develop a nice little statically link executable instead of deploying a jar if needed.

[1]https://www.eclipse.org/swt/

https://github.com/eclipse/eclipse.platform.swt/tree/master/...

[2]https://github.com/eclipse/eclipse.platform.ui

[3]https://www.eclipse.org/swt/snippets/

[4]https://github.com/eclipse/eclipse.platform.swt/tree/master/...

[5]https://github.com/eclipse/swtchart

[6]https://lablicate.com/platform/openchrom

https://lablicate.com/static/media/openchrom-GC-MS.722d5aa3....

[7]https://github.com/mbarbeaux/graalvm-swt-native-image

parent fayten 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton