Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrianromero/hellocommon
HelloCommon are basic JavaFX utilities
https://github.com/adrianromero/hellocommon
javafx-library
Last synced: about 1 month ago
JSON representation
HelloCommon are basic JavaFX utilities
- Host: GitHub
- URL: https://github.com/adrianromero/hellocommon
- Owner: adrianromero
- License: apache-2.0
- Created: 2015-10-06T19:39:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T22:15:26.000Z (almost 5 years ago)
- Last Synced: 2024-10-13T18:41:17.261Z (2 months ago)
- Topics: javafx-library
- Language: Java
- Size: 229 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HelloCommon [![Release](https://jitpack.io/v/adrianromero/hellocommon.svg)](https://jitpack.io/#adrianromero/hellocommon)
============HelloCommon is a JavaFX library for displaying internal dialogs
![Screenshot](https://i.imgur.com/KOXgvZW.png)
Install
=======To install the library add:
```gradle
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.adrianromero:hellocommon:1.2.20'
}
```Usage
=====Go to the [Demo.java](src/main/java/com/adr/hellocommon/dialog/Demo.java) class file to see how to intialize and use HelloCommon.
Initialize
----------It is needed an *StackPane* as parent for internal dialogs. Usually the *Scene* root.
```java
MessageUtils.setDialogRoot(root, true);
```And it is also a good idea to set the default *css* for all message dialogs in *MessageUtils*.
```java
MessageUtils.useDefaultCSS();
```Information dialog
------------------```java
MessageUtils.showInfo(root, "Title", "Information message.");
```![Information dialog](https://i.imgur.com/DDCqF3M.png)
License
=======HelloCommon is licensed under the Apache License, Version 2.0, January 2004.