Importing packages

The next thing you need to pay attention to is the imports section. All used classes should have corresponding packages mentioned in the import header:

<?import javafx.scene.control.*?><?import javafx.scene.layout.*?>

Get Mastering JavaFX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.