does anyone know a function that would fill a colour in a BufferedImage like in ms paint the paint bucket. If not function that already does this in Java does anyone no what would do to go about writing one. Just a function that fills colour when given x,y co-ords that would be gotten from mouse click. Just has to work basicly the same as paint bucket in ms paint but in java applet. I've seen some examples on web but can't seem to get to work. I just want function in format of something like floodFill(int x, int y, Color oldColour, Color newColour). please help!!