News for hackers. Stuff that matters.
Re:Ask HN: Why isn't GWT or Vaadin more popular among Java d... by jeffreportmill1 on Tuesday July 12, 2022 @11:15AM (#32071170)
I use SnapKit to do Java desktop development which compiles easily to JavaScript using TeaVM. SnapKit is both modern and conventional, a good middle ground between Swing and JavaFX. But most importantly, it combines the traditional win of desktop Java UI dev with the ease of web deployment.

SnapKit: https://github.com/reportmill/SnapKit

Demos: https://reportmill.com/snaptea/

Disclaimer: I am the primary author, so this is self-serving. But it doesn't mean it sucks. :-)

Re:Ask HN: Why isn't GWT or Vaadin more popular among Java d... by oldjavacoder on Tuesday July 12, 2022 @09:36PM (#32078023)
Definitely worth a look thank you! On another note, I've experimented successfully with https://www.jsweet.org/.
Re:Ask HN: Why isn't GWT or Vaadin more popular among Java d... by jouni- on Wednesday July 13, 2022 @02:47PM (#32087083)
While this looks impressive technically (everything rendered using <canvas>), it seems completely inaccessible to anyone else than users with a pointing device.
Re:Ask HN: Why isn't GWT or Vaadin more popular among Java d... by jitl on Tuesday July 12, 2022 @11:52AM (#32071720)
The demos feel fast on my iPhone, but deeply weird to squint at a teeny tiny 2000s style UI on my smartphone. Have you thought about “retina” or “responsive” UI patterns? I guess if you’re explicitly targeting only 2000s desktop users you don’t need it, but more and more consumers have 13” HiDPI tablets or touch laptops, and all consumers have touch phones.
Re:Ask HN: Why isn't GWT or Vaadin more popular among Java d... by jeffreportmill1 on Tuesday July 12, 2022 @02:39PM (#32074050)
SnapKit does support Retina/HiDPI, but most of the demos assume a larger default screen.

The look is a little dated, much of it due to the gray backgrounds. It just needs a couple months of work from someone with more aesthetic design sense than me.