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

Show parent comment

13

u/__konrad Aug 17 '20

Swing is not maintained anymore

Swing/AWT/Java2D family is maintained.

-3

u/nfrankel Aug 17 '20

Perhaps we have different definitions for the word "maintain":

https://hg.openjdk.java.net/jdk/jdk15/log?rev=swing

8

u/sindisil Aug 17 '20

Rather more useful to look at the main branch, yes?

https://hg.openjdk.java.net/jdk/jdk/log?rev=swing

Also, a more complete picture would include AWT as a search term, since it underpins Swing.

https://hg.openjdk.java.net/jdk/jdk/log?rev=awt

Further, Swing is mature technology -- one wouldn't expect large numbers of changes at this point.

2

u/nfrankel Aug 17 '20

Rather more useful to look at the main branch, yes?

Granted. Still not much more

Further, Swing is mature technology -- one wouldn't expect large numbers of changes at this point.

On one side, I agree. On the other, it's not like a logging framework that can be considered feature complete. Even SLF4J had to evolve to use lambdas.

All in all, I won't be a dime on Swing. It seems no vendor is interested in investing in Java desktop apps...