Created
July 24, 2015 02:17
-
-
Save ClarkTheCoder/e52b2a630818dadc01a8 to your computer and use it in GitHub Desktop.
AlertBox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sample; | |
import javafx.scene.control.Alert; | |
public class AlertBox { | |
public static void show(String txt) { | |
Alert alert = new Alert(Alert.AlertType.INFORMATION); | |
alert.setContentText(txt); | |
alert.showAndWait(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lol