removePaint

static void removePaint(Consumer<Graphics2D> graphicsConsumer)

Removes a paint listener

Parameters

graphicsConsumer

A consumer that was used to draw on the Graphics object.