Remix.run Logo
▲ alfiedotwtf 3 hours ago

I couldn’t find it in the docs, but does the OpenJDK contain Java’s GUI? It would be cool to write the backend in whatever language you want and then have an ACTUAL library that works on all platforms that also looks like the system GUI

▲papercrane 3 hours ago | parent | next [-]

It is bundled with Swing and AWT, but neither really looks like native, which has been a consistent complaint about them.

There is also JavaFX, but that is no longer bundled with the JDK.

▲fian 43 minutes ago | parent [-]

Swing with the Nimbus Look and Feel isn't too bad for a quick, functionality-focused widget and it's super handy to have it still built into the JDK. It's not a good option for building a long term desktop application UI now though. There is no on-going development, the focus is now in Java FX. Prior to AI tooling, finding answers to Swing questions was getting much harder. Surprisingly I've found Claude to be pretty good at providing simple Swing UIs.

▲TeaVMFan 3 hours ago | parent | prev [-]

You can also make web frontends in Java for over a decade. This allows a full-stack app in Pure Java:

* React replacement: Flavour ( https://frequal.com/Flavour/book.html )

* Vanilla JS equivalent: TeaVM ( https://www.teavm.org/ )