@@ -0,0 +1,1508 @@
+/*%0A * Copyright (C) 2017 Adakite%0A *%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as%0A * published by the Free Software Foundation, either version 3 of the%0A * License, or (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage droplauncher.mvc.view;%0A%0Aimport java.util.Optional;%0Aimport javafx.scene.control.Alert;%0Aimport javafx.scene.control.Alert.AlertType;%0Aimport javafx.scene.control.ButtonType;%0A%0Apublic class YesNoDialog %7B%0A%0A  public YesNoDialog() %7B%0A    /* Do nothing. */%0A  %7D%0A%0A  public boolean userConfirms(String title, String content) %7B%0A      Alert alert = new Alert(AlertType.CONFIRMATION);%0A      alert.setTitle(title);%0A      alert.setContentText(content);%0A      alert.setHeaderText(null);%0A      View.addDefaultStylesheet(alert.getDialogPane().getStylesheets());%0A      ButtonType btnNo = new ButtonType(%22No%22);%0A      ButtonType btnYes = new ButtonType(%22Yes%22);%0A      alert.getButtonTypes().setAll(btnYes, btnNo);%0A      Optional%3CButtonType%3E result = alert.showAndWait();%0A      return (result.get() == btnYes);%0A  %7D%0A%0A%7D%0A

Add file YesNoDialog.java