Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
To reproduce:
(note insure JavaFX 2 plugin is active otherwise JavaFX>EmptyFXML is not available)
- File >New Project >Java with Maven >FXML JavaFx Maven Archetype (Gluon) >....
- File >New File > other > JavaFX > Empty FXML
- Next
- Checkbox Use Java Controllers
- Put the controller in package "newpackage"
- Finish
Notice that the file FXML.java in the editor shows an error
Class does not exist: newpackage.FXMLController
Things compile but if you try to use the new controller/fxml there is a runtime error.
The problem is fixed by adding these lines to moduleinfo
opens newpackage to javafx.fxml; exports newpackage;
This should be done automatically by the wizard.
Notice that after adding these lines, the editor error indication in the fxml file goes away.