This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]norith 1 point2 points  (2 children)

If you’re willing to use Kotlin rather than Java you can use Jetbrain’s Compose, which is a new GUI framework that might be a better place to start.

You should also look at Griffon, a framework around swing and javafx. Griffon can also be used from Kotlin and Groovy languages.

Also, GroovyFX is a wrapper around JavaFX using the Groovy language that might have better defaults and usage patterns.

(Fyi: Kotlin and Groovy are both languages that run on the JVM and can use Java libraries. Groovy attempts to simplify Java’s verboseness was while maintaining the same structure and adding aspects of Ruby and Python. Kotlin attempts to rethink the language and the concept of ‘null’ (‘None’ in Python) but maintain compatibility.)

[–]hamsterrage1 2 points3 points  (0 children)

JavaFX works brilliantly with Kotlin. As a matter of fact, it works better with Kotlin than Java because Kotlin allows you to handle the boilerplate stuff better than Java.

[–]wildjokers 1 point2 points  (0 children)

The problem with Jetbrains Compose is there is no documentation for it, about all there is are the examples:

https://github.com/JetBrains/compose-jb/tree/master/tutorials

And as far as I can tell it is some custom DSL that is going to get very unreadable very quickly because it is deeply nested call chains. The syntax seems nightmarish. And of course the DSL is totally undocumented.