JavaFX confirm Dialog - Java JavaFX

Java examples for JavaFX:Dialog

Description

JavaFX confirm Dialog

Demo Code

/**/*  www. j  ava  2 s .  co 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 confirm(Stage stage, String title, String desp,
            PopupEvent callback) {
        PopupView view = new PopupView(stage).setModal(true);
        view.setTitle(title).setDesp(desp);
        view.setImage(PopupConst.IMG_CONFIRM).setCallback(callback);

        view.show();
    }
}

Related Tutorials