[
https://issues.apache.org/jira/browse/NETBEANS-4764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17189368#comment-17189368
]
Ernie Rael commented on NETBEANS-4764:
--------------------------------------
FYI, this issue came up when dealing with NETBEANS-4718
That issue was also related to module-info in that you can not put java files
in the default package.
> EmptyFXML wizard does not fixup module-info as needed
> -----------------------------------------------------
>
> Key: NETBEANS-4764
> URL: https://issues.apache.org/jira/browse/NETBEANS-4764
> Project: NetBeans
> Issue Type: Bug
> Components: javafx - Project
> Reporter: Ernie Rael
> Priority: Major
>
> 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
> {code:java}
> Class does not exist: newpackage.FXMLController
> {code}
> 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
> {code:java}
> opens newpackage to javafx.fxml;
> exports newpackage;
> {code}
> This should be done automatically by the wizard.
> Notice that after adding these lines, the editor error indication in the fxml
> file goes away.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists