As part of trying B4J I've created a separate module to handle the creation of the JavaFx widgets using code. I haven't been able to find how to initialize these widgets to call a function in the Main Module (ie. initialize eg. Button), but only to call a function in the module in which they are created. To overcome that, the action function in the module that creates the widgets simply calls the function in the Main Module to handle the action. Obviously I've done it this way to separate the GUI creation from the main logic. It's no big deal having to handle it this way (in this case) because there is one function to handle many widgets. I would just like to know if there is a way to call the action function in the Main Module directly from the widget rather than create a function in the GUI creation module to do it. There could be situations where this could become less elegant.