JavaFX alert - Java JavaFX

Java examples for JavaFX:Alert

Description

JavaFX alert

Demo Code

/**//from   w w w .  j  a v  a 2  s .  c o m
 * Author: obullxl@gmail.com
 * Copyright (c) 2004-2013 All Rights Reserved.
 */
import javafx.application.Platform;
import javafx.stage.Stage;

public class Main{
    
    
    public static void alert(Stage stage, String title, String desp) {
        PopupView view = new PopupView(stage).setModal(true);
        view.setTitle(title).setImage(PopupConst.IMG_FAILURE).setDesp(desp);

        view.show();
    }
}

Related Tutorials