Better notifications and alerts for Java applications. This code is very messy and could be done way better, but this is just the first version.
The name is temporary, but originates since the alert style was loosely based off alertify.js.
Add the jitpack repository to your maven pom.xml:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
And define Alertify4J as a dependency:
<dependency>
<groupId>com.github.ryleykimmel</groupId>
<artifactId>Alertify4J</artifactId>
<version>master-SNAPSHOT</version>
</dependency>
Basic Example:
Alertify.show(new AlertifyBuilder()
.type(AlertifyType.SUCCESS)
.text("Hello, world!")
.autoClose(5000)
.build());
Example with callback:
Alertify.show(new AlertifyBuilder()
.type(AlertifyType.SUCCESS)
.text("Hello, world!")
.callback((window) -> {
// Callback code
})
.build());