So, in my other computer when I create a new project and select JavaFX in the wizard. I have JavaFX SDK but on my laptop it isn't present and I believe that is why I can not import javafx methods.
I had a similar issue so I decided to install eclipse all together thus resolving the issue in 10 minutes
I still have to manually do it.
I had to do it manually as well!