Swing is swing, it's as good as it's always been (eye of the beholder). As I understand it, it hasn't completely rotted on the shelf, they've made updates to the rendering to better leverage modern hardware, but it's not a modern toolkit by any means. But it is maintained, it still works.
JavaFX is good (I really like FX), and maintained, and portable. They just came out with 25 I think. But it's a completely different model than Swing.
Sure, but the same might be said of the subset of Java that existed twenty years ago; this is different from what people mean when they say "Java's good now".
JavaFX is better than swing, having done both (swing in a past life). CSS support is the big deal, plus modern rendering pipelines. Add that to the nice FP goodies and for-real cross-plaf packaging, (plus LLMs to get you through the crufty bits), it's IMO a serious contender for desktop UI.
JavaFX is good (I really like FX), and maintained, and portable. They just came out with 25 I think. But it's a completely different model than Swing.