String directory = new DirectoryChooser().getDirectory().toString();
String directory = new DirectoryChooser().getDirectory(jfritz.getJframe()).toString();
    public void backupToChoosenDirectory(){        CopyFile backup = new CopyFile();        try{    	String directory = new DirectoryChooser().getDirectory().toString();        backup.copy(".","xml",directory);        }        catch(NullPointerException e){        	Debug.msg("No directory choosen for backup!");        }    }