Pradyuman7 / Toast-For-Java

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:GNU General Public License v3.0


Languages

Language:Java 100.0%