JavaFX confirm Dialog - Java JavaFX

Java examples for JavaFX:Dialog

Description

JavaFX confirm Dialog

Demo Code

/**/* ww w . j  a  va  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 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