doubleBuffer sets the drawing to double buffered. This may be neccessary when you have switched to singelBuffer first and now you want to switch back to default.