LicenseDialog is an open source Java library, that allows you to show the license of the libraries used in your project inside a Material Design dialog.
- LicenseDialog requires Java 1.8u60 and above.
- You need to set JAVA_HOME environment variable to point to Java 1.8 directory.
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.biagiopietro</groupId>
<artifactId>LicenseDialog</artifactId>
<version>1.0.2</version>
</dependency>
// Create License list
List<License> licenseList = new ArrayList<>();
// Add Licenses to the list
licenseList.add(new License("Lib example", "https://www.google.com", "Copyright © example", License.licenseType.APACHE20));
LicenseDialogController licenseDialogController = new LicenseDialogController();
// Set the HostServices for the URL
licenseDialogController.setHostServices(hostServices);
licenseDialogController.setLicenseList(licenseList);
licenseDialogController.setTitleStage("Open Source Libraries");
licenseDialogController.setCloseButtonText("Close");
licenseDialogController.setTitleInsideDialog("Libraries");
licenseDialogController.showLicenseDialog();
- Apache 2.0
- MIT
- LGPL 3.0
- BSD 3-Clause
Issues can be reported to the Issue tracker. If you can't fix them yourself, please be patiente as I can only work on them during my spare time and according to my priorities.
Contributions are welcome, they can be submitted via Pull requests.
Special thanks to JetBrains for his beautiful IDEE IntelliJ IDEA and JFoenix for Material Design Components.