| | import static javafx.scene.control.Alert.AlertType.CONFIRMATION; |
| | import static javafx.scene.control.Alert.AlertType.ERROR; |
| | -import javafx.scene.control.ButtonType; |
| | import javafx.stage.Window; |
| | |
 |
| | return new DefaultAlertMessage( title, message, args ); |
| | } |
| | + |
| | |
| | private Alert createAlertDialog( |
| | final AlertType alertType, |
| | final AlertMessage message ) { |
| | |
| | final Alert alert = new Alert( alertType ); |
| | |
| | + alert.setDialogPane( new ButtonOrderPane() ); |
| | alert.setTitle( message.getTitle() ); |
| | alert.setHeaderText( null ); |
 |
| | final Alert alert = createAlertDialog( CONFIRMATION, message ); |
| | |
| | - alert.getButtonTypes().setAll( |
| | - ButtonType.YES, |
| | - ButtonType.NO, |
| | - ButtonType.CANCEL ); |
| | + alert.getButtonTypes().setAll( YES, NO, CANCEL ); |
| | |
| | return alert; |