hedyn / FX-Toaster

Tiny JavaFX Toast Notification Implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toaster

Provides a small set of simple FX Panes allowing customizable toast notifications in JavaFX GUI applications.

Toaster can be easily added to any project by simply wrapping whatever panes you like with a NotificationPane using FXML or raw Java.

Examples

Sample FXML
<NotificationPane [...] fx:id="noteStack">
  <VBox>
    <Button text="Add Note" onAction="#addNote" />
  </VBox>
</NotificationPane>
Sample Controller
public class Controller
{
  @FXML
  private NotificationPane noteStack;

  @FXML
  private void addNote( final Event ignored )
  {
    noteStack.notify(new Notification("Hello World"));
  }
}

Change Log

v1.1.0
  • Added getter for NotificationAnchorStack to NotificationPane

  • Added getter for header Label to Notification

v1.0.0

Initial Release

About

Tiny JavaFX Toast Notification Implementation

License:Apache License 2.0


Languages

Language:Java 95.7%Language:CSS 4.3%