You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ernie Rael (Jira)" <ji...@apache.org> on 2020/09/14 15:46:00 UTC

[jira] [Updated] (NETBEANS-4764) EmptyFXML wizard does not fixup module-info as needed

     [ https://issues.apache.org/jira/browse/NETBEANS-4764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ernie Rael updated NETBEANS-4764:
---------------------------------
    Labels: modularization  (was: )

> 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
>              Labels: modularization
>
> 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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists