private void selectFile() {
        jfc.setDialogTitle("Selecione o Ficheiro");
        jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
        jfc.setAcceptAllFileFilterUsed(false);
        int returnVal = jfc.showOpenDialog(null);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            input = jfc.getSelectedFile();
        }
    }