Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.08 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.08 KB

Toast-For-Java

License: GPL v3

A Java class that can be used for 🍞 like popup messages in simple Java applications.

Usage

String toastMsg = "This is the toast message";
int toastMsgTime = 3500; //3.5 seconds
int fadeInTime = 500; //0.5 seconds
int fadeOutTime= 500; //0.5 seconds
Toast.makeText(primarystage, toastMsg, toastMsgTime, fadeInTime, fadeOutTime);

Also, here PrimaryStage is the stage where the toast message will be attached. If you have only one stage then primaryStage is the parameter of the method start of your application. Read more about this here.

How to import in Project

Simply go to release section, download the Java class or just copy paste the source code from here in your Javafx application.