private static boolean isFontColor(int colorInt) {
        Color color = new Color(colorInt);
        int rgbsum=color.getRed() + color.getGreen() + color.getBlue();
        return  (rgbsum<=500&&rgbsum>=400);
    }