public int measureTextWidth(Font f, String text, int rowHeight) {
		Graphics g2 = new BufferedImage(rowHeight, rowHeight, BufferedImage.TYPE_INT_RGB).createGraphics();
		g2.setFont(f);
		FontMetrics fm = g2.getFontMetrics();
		int w = fm.stringWidth(text);
		// System.out.println("measureTextWidth: " + w + ": " + text);
		return w;
	}