Add EventBus dependency

This commit is contained in:
2021-02-19 16:56:30 +01:00
parent 9cdf806271
commit 0f1bcd3739
3 changed files with 19 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
package app;
import java.io.IOException;
import com.google.common.eventbus.EventBus;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
@@ -10,6 +13,8 @@ import javafx.stage.Stage;
public class Main extends Application {
EventBus eventBus;
/**
* Boilerplate function to launch the application
*/
@@ -40,4 +45,8 @@ public class Main extends Application {
window.setScene(scene);
window.show();
}
public EventBus getEventBus() {
return this.eventBus;
}
}