Where did you hear that (Swing/AWT being phased out)? Sure hope not - lots of applications (including mine) are still being actively developed using it. JavaFX was really a flash-in-the-pan: while it had couple components solely lacking in the elder Swing (e.g. WebView), it wasn't nearly enough to convince most Swing developers to move to it. Swing/AWT was way too embedded already (I worked for telecom & financial companies in the late 90s & early 2000s and they were all using Swing.)
Incidentally, if you're a Swing developer and looking to move your application to a Web based framework with minimum fuss, I recommend Vaadin. While it's still a rewrite, Vaadin is the closest to Swing in "spirit" of any framework I've found. I used it to do just that in the last 2 companies I worked for.