Java tutorial
//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; } }