public static boolean isInt(String text)
    {
        try
        {
            int i = Integer.valueOf(text.trim().toString());
        }
        catch (Exception e)
        {
            return false;
        }
        return true;
    }