package sample;
import javafx.application.Platform;
import javafx.embed.swing.JFXPanel;
import org.controlsfx.control.Notifications;
public class Main {
// @Override
// public void start(Stage primaryStage) throws Exception{
//// Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
// Button notifyButton = new Button("Notify");
// notifier.title("Test").text("Test Notification!").showInformation();
// notifyButton.setOnAction(e -> {
// notifier.title("Test").text("Test Notification!").showInformation();
// });
// primaryStage.setTitle("Hello World");
// primaryStage.setScene(new Scene(notifyButton, 100, 50));
// primaryStage.show();
// }
public static void main
(String[] args
) { new JFXPanel();
Platform.runLater(() -> { Notifications.create().title("hi").text("there").showInformation(); });
}
}
cGFja2FnZSBzYW1wbGU7CgppbXBvcnQgamF2YWZ4LmFwcGxpY2F0aW9uLlBsYXRmb3JtOwppbXBvcnQgamF2YWZ4LmVtYmVkLnN3aW5nLkpGWFBhbmVsOwppbXBvcnQgb3JnLmNvbnRyb2xzZnguY29udHJvbC5Ob3RpZmljYXRpb25zOwoKcHVibGljIGNsYXNzIE1haW4gewoKLy8gICAgQE92ZXJyaWRlCi8vICAgIHB1YmxpYyB2b2lkIHN0YXJ0KFN0YWdlIHByaW1hcnlTdGFnZSkgdGhyb3dzIEV4Y2VwdGlvbnsKLy8vLyAgICAgICAgUGFyZW50IHJvb3QgPSBGWE1MTG9hZGVyLmxvYWQoZ2V0Q2xhc3MoKS5nZXRSZXNvdXJjZSgic2FtcGxlLmZ4bWwiKSk7Ci8vICAgICAgICBCdXR0b24gbm90aWZ5QnV0dG9uID0gbmV3IEJ1dHRvbigiTm90aWZ5Iik7Ci8vICAgICAgICBub3RpZmllci50aXRsZSgiVGVzdCIpLnRleHQoIlRlc3QgTm90aWZpY2F0aW9uISIpLnNob3dJbmZvcm1hdGlvbigpOwovLyAgICAgICAgbm90aWZ5QnV0dG9uLnNldE9uQWN0aW9uKGUgLT4gewovLyAgICAgICAgICAgIG5vdGlmaWVyLnRpdGxlKCJUZXN0IikudGV4dCgiVGVzdCBOb3RpZmljYXRpb24hIikuc2hvd0luZm9ybWF0aW9uKCk7Ci8vICAgICAgICB9KTsKLy8gICAgICAgIHByaW1hcnlTdGFnZS5zZXRUaXRsZSgiSGVsbG8gV29ybGQiKTsKLy8gICAgICAgIHByaW1hcnlTdGFnZS5zZXRTY2VuZShuZXcgU2NlbmUobm90aWZ5QnV0dG9uLCAxMDAsIDUwKSk7Ci8vICAgICAgICBwcmltYXJ5U3RhZ2Uuc2hvdygpOwovLyAgICB9CgoKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBuZXcgSkZYUGFuZWwoKTsKICAgICAgICBQbGF0Zm9ybS5ydW5MYXRlcigoKSAtPiB7IE5vdGlmaWNhdGlvbnMuY3JlYXRlKCkudGl0bGUoImhpIikudGV4dCgidGhlcmUiKS5zaG93SW5mb3JtYXRpb24oKTsgfSk7CiAgICB9Cn0=
Main.java:25: error: illegal start of expression
Platform.runLater(() -> { Notifications.create().title("hi").text("there").showInformation(); });
^
Main.java:25: error: illegal start of expression
Platform.runLater(() -> { Notifications.create().title("hi").text("there").showInformation(); });
^
Main.java:25: error: illegal start of expression
Platform.runLater(() -> { Notifications.create().title("hi").text("there").showInformation(); });
^
Main.java:25: error: ';' expected
Platform.runLater(() -> { Notifications.create().title("hi").text("there").showInformation(); });
^
Main.java:25: error: illegal start of expression
Platform.runLater(() -> { Notifications.create().title("hi").text("there").showInformation(); });
^
Main.java:25: error: ';' expected
Platform.runLater(() -> { Notifications.create().title("hi").text("there").showInformation(); });
^
Main.java:25: error: illegal start of type
Platform.runLater(() -> { Notifications.create().title("hi").text("there").showInformation(); });
^
Main.java:27: error: class, interface, or enum expected
}
^
8 errors