From the File menu, choose New Project.In the JavaFX application category, choose JavaFX FXML Application. Click Next.Name the project FXMLExample and click Finish. NetBeans IDE opens an FXML project that includes the code for a basic Hello World application. … Rename SampleController. … Rename Sample.
How do I run FXML?
- From the File menu, choose New Project.
- In the JavaFX application category, choose JavaFX FXML Application. Click Next.
- Name the project FXMLExample and click Finish. NetBeans IDE opens an FXML project that includes the code for a basic Hello World application. …
- Rename SampleController. …
- Rename Sample.
Where do I put FXML files?
Put all of your fxml in a src/main/resources/fxml directory.