graph.fillRect(tempRect.x, tempRect.y, tempRect.width, tempRect.height);
graph.setColor(text);
graph.drawString(shortName, tempRect.x + 1, tempRect.y + tempRect.height - 1);
// create final image
image = createImage(new FilteredImageSource(tempImage.getSource(), new KeyAlphaFilter(
TRANSPARENT)));
graph.dispose();
tempImage.flush();
}