Example usage for javafx.scene.control Alert Alert

List of usage examples for javafx.scene.control Alert Alert

Introduction

In this page you can find the example usage for javafx.scene.control Alert Alert.

Prototype

public Alert(@NamedArg("alertType") AlertType alertType, @NamedArg("contentText") String contentText,
        @NamedArg("buttonTypes") ButtonType... buttons) 

Source Link

Document

Creates an alert with the given contentText, ButtonTypes, and AlertType (refer to the AlertType documentation for clarification over which one is most appropriate).

Usage

From source file:de.perdoctus.ebikeconnect.gui.ActivitiesOverviewController.java

private void gpxExportFinished() {
    final Alert info = new Alert(Alert.AlertType.INFORMATION, "", ButtonType.OK);
    info.setTitle(rb.getString("gpx-export-finished"));
    info.setHeaderText(rb.getString("gpx-export-finished"));
    info.show();//w  w  w.j av a2 s .c o m
}