Add EventBus dependency
This commit is contained in:
parent
9cdf806271
commit
0f1bcd3739
@ -33,4 +33,5 @@ Probably tastes better than any Apple editor and NetBeans combined.
|
||||
- [james-d/SimpleMVP](https://github.com/james-d/SimpleMVP/tree/master/src/examples/mvp) -> Demonstration of JavaFX Model/View/Controller application
|
||||
- [FXMisc/RichTextFX](https://github.com/FXMisc/RichTextFX) -> Library for handling rich text and line numbers
|
||||
- [richtextfx-demos](https://github.com/FXMisc/RichTextFX/blob/master/richtextfx-demos/README.md) -> Examples and demos of how to use RichTextFX, including [Java Keywords Demo](https://github.com/FXMisc/RichTextFX/blob/master/richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/JavaKeywordsAsyncDemo.java)
|
||||
- [Pixabay/311788](https://pixabay.com/vectors/bananas-fruits-pair-yellow-bananas-311788/) -> Banana logo
|
||||
- [Pixabay/311788](https://pixabay.com/vectors/bananas-fruits-pair-yellow-bananas-311788/) -> Banana logo
|
||||
- [Guava Event Bus](https://github.com/google/guava/wiki/EventBusExplained) -> Library for handling communication between controllers
|
8
pom.xml
8
pom.xml
@ -35,6 +35,14 @@
|
||||
<version>0.10.5</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Guava Eventbus -->
|
||||
<dependency>
|
||||
<groupId>org.sonatype.nexus</groupId>
|
||||
<artifactId>google-guava-eventbus</artifactId>
|
||||
<version>3.2.0-01</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- JUnit 5 -->
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user