https://github.com/adrianromero/hellocommon
HelloCommon are basic JavaFX utilities
https://github.com/adrianromero/hellocommon
javafx-library
Last synced: 3 months 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T22:15:26.000Z (over 5 years ago)
- Last Synced: 2025-01-21T00:50:12.935Z (5 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 [](https://jitpack.io/#adrianromero/hellocommon)
============HelloCommon is a JavaFX library for displaying internal dialogs

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.");
```
License
=======HelloCommon is licensed under the Apache License, Version 2.0, January 2004.