News for hackers. Stuff that matters.
Re:Clojure Desktop UI Framework by dig1 on Tuesday August 27, 2024 @10:59AM (#41368295)
Clojure and Flatlaf [1] tick all the boxes for me. If I want declarative-ish UI, I can always throw in Seesaw [2]. Everything else I find cumbersome, pulls tons of unnecessary dependencies and (usually) ends up abandoned in a year or two. With Swing, I know it is well-documented and will work for the next 30 years. But YMMV and I'm hoping that HumbleUI could be an exception.

[1] https://www.formdev.com/flatlaf/

[2] https://github.com/clj-commons/seesaw

Re:Clojure Desktop UI Framework by swarthy_avenger on Tuesday August 27, 2024 @12:27PM (#41369366)
FlatLaf is incredible and breathes new life into the Swing UI framework.
Re:Clojure Desktop UI Framework by iamcalledrob on Tuesday August 27, 2024 @02:15PM (#41370868)
Having worked with Swing recently, I worry that it will not work well on the near-distant future, because it feels frozen in time at about 2005.

There are a lot of assumptions baked in that aren't holding up today.

For example, high density and multi monitor aren't well supported. There's a bunch of stuff hard-coded in the JDK that no longer makes sense and you have to hack around.

Re:Clojure Desktop UI Framework by vips7L on Tuesday August 27, 2024 @06:01PM (#41373610)
I haven't worked with FX or Swing lately but I could have sworn they delivered hidpi support. Maybe in this JEP? https://openjdk.org/jeps/263
Re:Clojure Desktop UI Framework by lemming on Wednesday August 28, 2024 @06:20AM (#41377942)
I recommend using the JetBrains JRE, they have fixed lots of these sorts of issues, as well as greatly improved hot class reloading for development.