public static File showOpenFileDialog(Frame parentFrame, String title){
        FileDialog fileDialog = new FileDialog(parentFrame, title);
        fileDialog.setIconImage(MAIN_ICON.getImage());
        fileDialog.setDirectory(HOME_DIRECTORY);
        fileDialog.setVisible(true);
        String directoryName = fileDialog.getDirectory();
        String fileName = fileDialog.getFile();

        File file = null;
        if (directoryName != null && fileName != null) {
            file = new File(directoryName + fileName);
        }
        return file;
    }