added license lable action
This commit is contained in:
parent
890830b84e
commit
15196718c5
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
</JFXButton>
|
||||
</children>
|
||||
</VBox>
|
||||
<ScrollPane fx:id="settingsScrollPane" style="-fx-background: white;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="175.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="38.0">
|
||||
<ScrollPane fx:id="settingsScrollPane" style="-fx-background: white;" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="175.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="38.0">
|
||||
<content>
|
||||
<!-- space between settings sections 35px, between sections elements (label + element) 20px, between label and element 3px(or more) -->
|
||||
<AnchorPane fx:id="settingsAnchorPane" prefHeight="607.0" prefWidth="511.0" style="-fx-background-color: white;">
|
||||
|
|
Loading…
Reference in New Issue