Skip to content

Better alerts and notifications for Java applications. Very early version!

License

Notifications You must be signed in to change notification settings

rmcmk/Alertify4J

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alertify4J

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.

Building

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>

Example

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());

What the result looks like

Example

About

Better alerts and notifications for Java applications. Very early version!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%