Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: LGPL 

import java.io.File;

public class Main {
    public static boolean isFileChooser(String value) {
        if (value.equalsIgnoreCase("filechooser")) {
            return true;
        }
        try {
            File file = new File(value);
            if (file.exists()) {
                return true;
            }
        } catch (Throwable e) {
        }
        return false;
    }
}