It would be perfect if there was a way to write an app once and have it running on multiple platforms. You kinda do that, but on the UI side of if, has I understood, it's not "generic".
If the UI is generated by code (not using the desinger) the API will be the same for everything, or Android has a different API than JavaFX? I mean, in the B4? API...