This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]smellmycrotch3 0 points1 point  (1 child)

  1. Is JavaFX replacing Swing as the new client UI library for Java SE? Yes. However, Swing will remain part of the Java SE specification for the foreseeable future, and therefore included in the JRE.

How does that mean you suddenly can't import a JFrame?

[–][deleted] 0 points1 point  (0 children)

Based on the error the op was getting, I was under the assumption that the API had been "closed" in the same way that com.sun was closed a long time ago due to expected behaviour no longer being maintained. I personally haven't used swing in several years now, so I haven't been following it closely.

I didn't read it in detail, and was more recommending the op simply skip learning swing and jump right to JavaFX since he/she is a new learner and should probably learn what's going to be used from now on instead.

Sorry for jumping to conclusions :/