@@ -0,0 +1,1618 @@
+package controller;%0A%0Aimport javafx.scene.control.Button;%0Aimport javafx.stage.FileChooser;%0Aimport javafx.stage.Stage;%0A%0Aimport java.io.File;%0A%0A/**%0A * Created by %ED%9A%A8%EB%AF%BC on 2016-05-20.%0A */%0Apublic class FileExplorer %7B%0A%0A//    Button btn;%0A//    public FileExplorer(Button btn)%7B%0A//        this.btn = btn;%0A//    %7D%0A    public File getSaveDialog(Button btn)%7B%0A%0A        Stage s = (Stage) btn.getScene().getWindow();%0A        FileChooser fileChooser = new FileChooser();%0A%0A        fileChooser.setTitle(%22Save File%22);%0A        fileChooser.getExtensionFilters().addAll(%0A                new FileChooser.ExtensionFilter(%22Text Files%22, %22*.txt%22),%0A                new FileChooser.ExtensionFilter(%22Image Files%22, %22*.png%22, %22*.jpg%22, %22*.gif%22),%0A                new FileChooser.ExtensionFilter(%22Audio Files%22, %22*.wav%22, %22*.mp3%22, %22*.aac%22),%0A                new FileChooser.ExtensionFilter(%22All Files%22, %22*.*%22));%0A%0A        File file = fileChooser.showSaveDialog(s);%0A        return file;%0A    %7D%0A%0A    public File getLoadDialog(Button btn)%7B%0A%0A        Stage s = (Stage) btn.getScene().getWindow();%0A        FileChooser fileChooser = new FileChooser();%0A%0A        fileChooser.setTitle(%22Open File%22);%0A        fileChooser.getExtensionFilters().addAll(%0A                new FileChooser.ExtensionFilter(%22Text Files%22, %22*.txt%22),%0A                new FileChooser.ExtensionFilter(%22Image Files%22, %22*.png%22, %22*.jpg%22, %22*.gif%22),%0A                new FileChooser.ExtensionFilter(%22Audio Files%22, %22*.wav%22, %22*.mp3%22, %22*.aac%22),%0A                new FileChooser.ExtensionFilter(%22All Files%22, %22*.*%22));%0A%0A        File selectedFile = fileChooser.showOpenDialog(s);%0A        return selectedFile;%0A    %7D%0A%7D%0A%0A%0A%0A

make FileExplorer class