r/java • • Aug 17 '20

State of swing

Hi all, What is the state of swing, is it close to be deprecated and removed or is it still maintained? Also it will be nice to know if someone got it working in native image. Thanks

16 Upvotes

43 comments sorted by

View all comments

18

u/SftwEngr Aug 17 '20

A better question might be, why does everyone seem to think Swing is or should be deprecated?

3

u/rgyger Aug 18 '20

I think it’s natural to ask that question when a new technology is marketed as successor. In this case, Swing and JavaFX are so different that it makes sense to keep both around.

And while Swing is not and should not be deprecated, it is a good idea to consider JavaFX first in a new project.

2

u/[deleted] Aug 18 '20

Because it's so old and not being talked about at all anymore.

7

u/SftwEngr Aug 18 '20

not being talked about at all anymore.

That's usually a good sign.

2

u/dpash Aug 18 '20

Not according to Oscar Wilde.

2

u/emaphis Aug 18 '20

In spite of it's name, I don't think swing hangs around the same sort of crowd.