-
Notifications
You must be signed in to change notification settings - Fork 0
/
DemoWithDefaults.java
34 lines (27 loc) · 1.01 KB
/
DemoWithDefaults.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package tech.ugma.customcomponents.tributefx.demo;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
import tech.ugma.customcomponents.tributefx.SimpleMentionable;
import tech.ugma.customcomponents.tributefx.TributeFX;
import java.util.ArrayList;
public class DemoWithDefaults extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
WebView webView = new WebView();
BorderPane root = new BorderPane(webView);
Scene scene = new Scene(root);
TributeFX.tributifyWebView(webView);
WebEngine webEngine = webView.getEngine();
ArrayList<SimpleMentionable> mentionables = TributeFX.createSampleMentionableList();
TributeFX.addMentionables(mentionables, webEngine);
primaryStage.setScene(scene);
primaryStage.show();
}
// private Object createList() {
//
// }
}