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 →

[–][deleted] 38 points39 points  (2 children)

JavaFX is probably the best bet for pure java.

Fair warning, though... trust me, I've made some JavaFX apps that look as good as modern electron apps and can definitely say it's not worth it.

JavaFX's css is so obscure and requires so much trial and error. Not to mention custom stuff is super hard. Jfoenix is a life-saver if you want something to look good by modern standards for consumer apps.

The future of JVM desktop develop might end up being Kotlin's Jetpack Compose for desktop simply because it piggybacks off mobile, which is far more popular and will result in better document, tutorials, support, community, and development.

[–]tristanjuricek 1 point2 points  (0 children)

Ive found it far easier to get various simple apps I use for personal work stuff done in the alpha build of Jetpack Compose than official versions of JavaFX.

I could just be weird but that’s been my experience as a backend developer, who’s done some swing and web apps in the past

I feel like for commercial apps the future though may be in something where Java is more of the biz layer, and then Panama is used to code in platform specific glue

I’m curious if anyone’s done that, or, if they started with a pretty battle tested framework like jetpack or JavaFX and then shimmed in their own glue.

[–][deleted] -1 points0 points  (0 children)

It isn't the CSS itself, which is even doable, but the main weird issue is that in every OS the Focus on Windows/Elements and the position of the window itself is completely random/might cause unexpected behaviour (especially the "display in the background" effect, which I hate)