/** * */ package de.fhswf.in.inf.java2.aufgabe05.view; import javafx.application.Application; import javafx.application.Platform; import javafx.fxml.FXML; import javafx.scene.control.Alert; import javafx.scene.control.Alert.AlertType; /** * TODO Add comment here * * @author $Author: $ * @version $Revision: $, $Date: $ UTC */ public class RootLayoutController { @FXML private void handelBeenden() { Platform.exit(); } @FXML private void handelModena() { Application.setUserAgentStylesheet(Application.STYLESHEET_MODENA); } @FXML private void handelCaspian() { Application.setUserAgentStylesheet(Application.STYLESHEET_CASPIAN); } @FXML private void handelInfo() { Alert info = new Alert(AlertType.INFORMATION); info.setTitle("Info über das Programm"); info.setHeaderText("Programmierer: Stefan Suhren"); info.setContentText("Dieses Programm wurde programmiert."); info.show(); } }