|
| ▲ | whartung 3 days ago | parent | next [-] |
| 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. |
| |
| ▲ | ameliaquining 3 days ago | parent [-] | | 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". |
|
|
| ▲ | ako 3 days ago | parent | prev | next [-] |
| I wrote a swing app a long time ago (20+ years ago) that was used in operating theaters to register organs for transplantation. Swing has saved many lives since. Swing has been good enough for a long time. |
|
| ▲ | mdaniel 2 days ago | parent | prev | next [-] |
| As a point of reference, JetBrains platform is on top of swing, and I'd guess that's a significant contributor to why they're able to deliver consistently across Linux, macOS, and Windows. Unlike Eclipse SWT which ships native code for all the platforms it targets |
| |
| ▲ | ameliaquining 2 days ago | parent [-] | | My understanding is that JetBrains puts a heroic amount of effort into making their Swing components not look terrible, and that they can do this because they're a well-resourced engineering-centric company whose main product is a GUI app whose users spend all day in it and often pay for it out of pocket. That Swing might be underrated for this use case (if you also need to ship cross-platform) is an intriguing possibility, but different from whether it's a good choice for the marginal GUI app. |
|
|
| ▲ | RyanHamilton 3 days ago | parent | prev | next [-] |
| It's as great as it ever was. I like it as its very stable and has a good model of interaction but if you want a modern embeddable map or embeddable chart stick with web interfaces. If you do go with swing definitely check out flatlaf to make it look modern. |
|
| ▲ | freedomben 3 days ago | parent | prev | next [-] |
| No, swing is pretty out of fashion if not deprecated. I know it pretty well, but still wouldn't choose it if starting a new project today. I'd use Qt, though if you're not comfortable with C++ I've been told JavaFX is pretty good |
| |
| ▲ | pjmlp 3 days ago | parent | next [-] | | Swing is standard part of JDK, there is nothing deprecated, it even got a Metal backend. | | | |
| ▲ | dionian 3 days ago | parent | prev [-] | | ive tried javafx but its always easier to me to go back to swing, if it aint broke dont fix it. |
|
|
| ▲ | johnyzee 3 days ago | parent | prev [-] |
| Your neighbor's dog barks at Swing. |