Two questions about JavaFX
Answered
1. Every time I start a new JavaFX project, I have to add the JavaFX SDK library and add a module-info.java file with "requires javafx.fxml;", "requires javafx.controls;" and "opens sample;"
Is there a way to automate this or make it default for new JavaFX projects?
2. "Window > Store current layout as default" does not work in a JavaFX projects. So I have to redo the layout every time I start a new project.
Is there a solution to this?
regards,
Sean
Please sign in to leave a comment.
1. You can use a global library or create a template project: https://www.jetbrains.com/help/idea/save-project-as-template-dialog.html .
2. A bug report with the steps to reproduce is welcome at https://youtrack.jetbrains.com/newIssue?project=IDEA .
Thanks Serge, template project worked. There were problems with different JDK versions and JavaFX SDK dependencies. After I figured them out the second issue was fixed too.