Why does this create an out of memory error?
I don't know if it has anything to do with it. But image is not a BufferedImage, it is an Image.Code:public void setImageToColor()
{
image = new BufferedImage(250, 250, BufferedImage.TYPE_INT_RGB);
Graphics2D g = (Graphics2D)image.getGraphics();
g.setBackground(color);
}

