I have a Java-code business logic and a JavaFX2-code GUI.
A Java Game.java
class interacts with a GameGUI.java
FX class via an EventBroker and listeners.
The main classes are in the back-end package Main.java
and in the front-end package MainGUI.java
, so the application is started from the start-method in the MainGUI
class.
How can I connect the back-end (Main) with the front-end (MainGUI)? Is there a method to set the Java back-end classes as model for the GUI? I'm just getting started with JavaFX...