2018-11-25 18:13:09 +03:00
|
|
|
package mplayer4anime;
|
|
|
|
|
|
|
|
import javafx.scene.control.Alert;
|
2018-11-28 07:10:35 +03:00
|
|
|
import javafx.scene.layout.Region;
|
2018-11-25 18:13:09 +03:00
|
|
|
|
|
|
|
public class ServiceWindow {
|
|
|
|
/**
|
|
|
|
* Create window with notification
|
|
|
|
* */
|
|
|
|
public static void getErrorNotification(String title, String body){
|
|
|
|
Alert alertBox = new Alert(Alert.AlertType.ERROR);
|
|
|
|
alertBox.setTitle(title);
|
|
|
|
alertBox.setHeaderText(null);
|
|
|
|
alertBox.setContentText(body);
|
2018-11-28 07:10:35 +03:00
|
|
|
alertBox.getDialogPane().setMinHeight(Region.USE_PREF_SIZE); // Java bug workaround for linux
|
2018-11-25 18:13:09 +03:00
|
|
|
alertBox.show();
|
|
|
|
}
|
|
|
|
}
|