09.04.2018 Views

tornadofx-guide

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10. FXML<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

You may notice above you have to import the types you use in FXML just like coding<br />

in Java or Kotlin. Intellij IDEA should have a plugin to support using ALT+ENTER to<br />

generate the import statements.<br />

If you load this file in Scene Builder you will see the following result (Figure 9.1).<br />

Figure 9.1<br />

Next let's load this FXML into TornadoFX.<br />

Loading FXML into TornadoFX<br />

146

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!