if ((list[i].getAbsolutePath()).equals(fileName)) exist = true;
if ((list[i].getAbsolutePath()).equals(name)) exist = true;
    private void setSelection(String format, String fileName, String message,                                File[] list)    {        boolean exist = false;        for (int i = 0; i < list.length; i++)            if ((list[i].getAbsolutePath()).equals(fileName)) exist = true;                if (!exist) {            display = false;            manager.saveROIResult(format, fileName, message);            cancelSelection();         } else manager.showSelectionDialog(format, fileName, message);    }