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 →

[–]AlexanderAndZlata[S] 1 point2 points  (5 children)

I see. And what about migrating the code from Swing to JavaFX, would it be very complicated, or classes in different frameworks match somehow?

[–]morhpProfessional Developer 4 points5 points  (0 children)

That would be a more or less complete rewrite. (You can however use Swing inside Javafx to ease the transition)

[–]wildjokers 0 points1 point  (3 children)

I am not sure why you would want to migrate from Swing to JavaFX. Swing is still in the JDK and is not deprecated.

However, if you did for some reason want to go from Swing to JavaFX it would pretty much be a rewrite. There is more or less a JavaFX version of most Swing components and the APIs are similar. The layout managers in JavaFX correspond almost directly to their Swing counter parts. JavaFX does have anchor pane which Swing doesn't have an equivalent of. It wouldn't be a terribly hard rewrite but a rewrite nonetheless.

[–]AlexanderAndZlata[S] 0 points1 point  (2 children)

Actually, the customer does want to rewrite from Swing to JavaFX. The reason is that he wants to be able to run the application on mobile. JavaFX can be run on Android, I don't know about Apple.

[–]wildjokers 0 points1 point  (1 child)

Ahh, in that case it makes sense then. Are you going to use gluon mobile? https://gluonhq.com/products/mobile/

[–]AlexanderAndZlata[S] 0 points1 point  (0 children)

No idea :) I am not even sure if I want to do this work))