* @param insets the insets. The border area with the insets will not be tinted.
* @return a tinted image
*/
public static Image createTintedImage(Image i, Color color, Insets insets) {
TintFilter filter = new TintFilter(color, i.getWidth(null), i.getHeight(null), insets);
ImageProducer prod = new FilteredImageSource(i.getSource(), filter);
return Toolkit.getDefaultToolkit().createImage(prod);
}