Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/biagiopietro/licensedialog
https://github.com/biagiopietro/licensedialog
java javafx javafx-library libraries license-dialog licenses manage manage-licenses materialdesign-ui
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/biagiopietro/licensedialog
- Owner: biagiopietro
- License: apache-2.0
- Created: 2018-12-29T13:50:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-15T08:48:04.000Z (almost 6 years ago)
- Last Synced: 2024-11-19T21:32:53.792Z (2 months ago)
- Topics: java, javafx, javafx-library, libraries, license-dialog, licenses, manage, manage-licenses, materialdesign-ui
- Language: CSS
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![HitCount](http://hits.dwyl.io/biagiopietro/LicenseDialog.svg)](http://hits.dwyl.io/biagiopietro/LicenseDialog)
[![JitPack lib_version](https://jitpack.io/v/biagiopietro/LicenseDialog.svg)](https://jitpack.io/#biagiopietro/LicenseDialog)
[![GitHub forks](https://img.shields.io/github/forks/biagiopietro/LicenseDialog.svg)](https://github.com/biagiopietro/LicenseDialog/network)
[![GitHub issues](https://img.shields.io/github/issues/biagiopietro/LicenseDialog.svg)](https://github.com/biagiopietro/LicenseDialog/issues)
[![GitHub license](https://img.shields.io/github/license/biagiopietro/LicenseDialog.svg)](https://github.com/biagiopietro/LicenseDialog/blob/master/LICENSE)
---LicenseDialog
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.
## Screenshot
![](https://imgur.com/lbJs4FZ.png)
## Note
* LicenseDialog requires **Java 1.8u60** and above.
* You need to set JAVA_HOME environment variable to point to Java 1.8 directory.## How to Include In Maven Project
### Add JitPack in your repositories
```xml
jitpack.io
https://jitpack.io
```
### Add LicenseDialog in your dependencies
```xmlcom.github.biagiopietro
LicenseDialog
1.0.2```
## How to use
```
// Create License list
List 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();
```
## Supported Licenses
* Apache 2.0
* MIT
* LGPL 3.0
* BSD 3-Clause## Issues
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
Contributions are welcome, they can be submitted via Pull requests.## Special Thanks
Special thanks to JetBrains for his beautiful IDEE IntelliJ IDEA and JFoenix for Material Design Components.