private void openAndCopyFile() {
        JFileChooser fileChooser = null;

        if (lastOpenPath != null && !lastOpenPath.equals("")) {
            fileChooser = new JFileChooser(lastOpenPath);
        } else {
            fileChooser = new JFileChooser();
        }

        FileFilter wavFilter = new FileFilter() {
            @Override
            public String getDescription() {
                return "Sound file (*.WAV)";
            }

            @Override
            public boolean accept(File file) {
                if (file.isDirectory()) {
                    return true;
                } else {
                    return file.getName().toLowerCase().endsWith(".wav");
                }
            }
        };

        fileChooser.setFileFilter(wavFilter);
        fileChooser.setDialogTitle("Open Audio File");
        fileChooser.setAcceptAllFileFilterUsed(false);

        int userChoice = fileChooser.showOpenDialog(this);
        if (userChoice == JFileChooser.APPROVE_OPTION) {
            audioFilePath = fileChooser.getSelectedFile().getAbsolutePath();
            lastOpenPath = fileChooser.getSelectedFile().getParent();
            File ficheiroSom = new File(audioFilePath);
            File pastaDestino = new File("audio");
            if (!pastaDestino.exists()) {
                pastaDestino.mkdir();
            }

            File dirEvento = new File(pastaDestino.getPath() + "\\" + "som1");

            if (!dirEvento.exists()) {
                dirEvento.mkdir();

                //pastaImagens = dirEvento.getPath();
               
                    File destination = new File(dirEvento.getPath() + "\\" + ficheiroSom.getName());
                    if (!destination.exists()) {
                        
                    try{
                         Files.copy(ficheiroSom.toPath(), destination.toPath(), REPLACE_EXISTING);
                    }catch(Exception e){
                        System.out.println("SwingAudioPlayer.java : Erro ao copiar Ficheiro");
                    }
                       
                        
                       
                    }
            }
        }
        }