This file contains 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(); |