public static int getStringWidthWithFont(Font font, String value) {
		if (font == null || value == null) {
			return 0;
		}

		FontMetrics fm = getFontMetrics(font);
		return fm.stringWidth(value);
	}