To set up IDEA for JavaFX development, download JavaFX and extract the files. To make things easier, in IDEA, go to File --> Other Settings --> Structure for New Projects --> Global Libraries, click ...
(Sorry about that, but we can’t show files that are this big right now.) ...