From 15196718c528d2262d87fb7f5a0920690b89c697 Mon Sep 17 00:00:00 2001 From: Jannik Date: Wed, 22 Nov 2017 22:53:15 +0100 Subject: [PATCH] added license lable action --- .../cemu_UI/application/MainWindowController.java | 12 +++++++++++- src/main/resources/fxml/MainWindow.fxml | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/cemu_UI/application/MainWindowController.java b/src/main/java/com/cemu_UI/application/MainWindowController.java index 2037579..dccddaf 100644 --- a/src/main/java/com/cemu_UI/application/MainWindowController.java +++ b/src/main/java/com/cemu_UI/application/MainWindowController.java @@ -694,7 +694,17 @@ public class MainWindowController { @Override public void handle(MouseEvent mouseEvent) { if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){ - // TODO show a new Dialog where you can see the different licenses of the libs and the cemu_UI license + String headingText = "cemu_UI"; + String bodyText = "cemu_UI is licensed under the terms of GNU GPL 3.\n\n" + + "JFoenix, Apache License 2.0\n" + + "minimal-json, MIT License\n" + + "sqlite-jdbc, Apache License 2.0\n" + + "Apache Commons IO, Apache License 2.0\n" + + "Apache Commons Logging, Apache License 2.0\n" + + "Apache Commons Codec, Apache License 2.0\n" + + "Apache Log4j 2, Apache License 2.0\n"; + JFXInfoDialog licenseDialog = new JFXInfoDialog(headingText, bodyText, dialogBtnStyle, 350, 275, main.pane); + licenseDialog.show(); } } }); diff --git a/src/main/resources/fxml/MainWindow.fxml b/src/main/resources/fxml/MainWindow.fxml index c5e5bf6..8a97bde 100644 --- a/src/main/resources/fxml/MainWindow.fxml +++ b/src/main/resources/fxml/MainWindow.fxml @@ -61,7 +61,7 @@ - +