public static void setFontForComponent(Component Comp, Font font) {
        if (font == null) {
            try {
                if (Locale.getDefault().toString().toLowerCase().contains("zh")) {
                    font = new Font("Microsoft YaHei", Font.PLAIN, 12);
                }
            } catch (Throwable e) {
            }
        }
        if (font == null) {
            return;
        }
        if (Comp != null) {
            try {
                Comp.setFont(font);
            } catch (Exception e) {
                return;
            }
        }
        if (Comp instanceof Container) {
            Component[] components = ((Container) Comp).getComponents();
            for (int i = 0; i < components.length; i++) {
                Component child = components[i];
                if (child != null) {
                    setFontForComponent(child, font);
                }
            }
        }
        return;
    }