@@ -0,0 +1,924 @@
+import javafx.application.Application;%0Aimport javafx.application.Platform;%0Aimport javafx.stage.FileChooser;%0Aimport javafx.stage.Stage;%0Aimport javafx.stage.Window;%0A%0Aimport java.io.File;%0A%0A/**%0A * Created by Vladyslav Dovhopol on 2/28/17.%0A */%0Apublic class Controller extends Application %7B%0A%0A    public void start(Stage primaryStage) throws Exception %7B%0A        readReport();%0A%0A        Platform.exit();%0A    %7D%0A%0A    /**%0A     * @return Excel file that has been read from file system. May be NULL.%0A     */%0A    public File readReport() %7B%0A        FileChooser.ExtensionFilter filter = new FileChooser.ExtensionFilter(%22Excel files%22, %22*.xls%22, %22*.xlsx%22);%0A%0A        FileChooser fileChooser = new FileChooser();%0A        fileChooser.getExtensionFilters().add(filter);%0A        fileChooser.setTitle(%22Choose report%22);%0A%0A        Window window = new Stage();%0A        window.centerOnScreen();%0A%0A        return fileChooser.showOpenDialog(window);%0A    %7D%0A%7D%0A

Add controller which for controlling life cycle of application. Read excel report from file system.