Archived
0

add info dialog

This commit is contained in:
iMoHax
2015-11-19 15:14:18 +03:00
parent fc595cc37f
commit 89f943d6e5

View File

@@ -5,6 +5,7 @@ import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.TextInputDialog;
import javafx.stage.Stage;
import javafx.util.Pair;
@@ -249,6 +250,15 @@ public class Screeners {
return dialog.showAndWait();
}
public static void showInfo(String title, String header, String message){
Alert dialog = new Alert(Alert.AlertType.INFORMATION);
dialog.setTitle(title);
dialog.setHeaderText(header);
dialog.setContentText(message);
dialog.showAndWait();
}
public static void showHelper(){
helperController.show(helperScreen, false);
}